Multiple Lines For PHP String – Use the concatenation operator – the period

PHP – Sometimes we want to write our strings on Multiple Lines. It is easier to read.
Use the concatenation operator – the period    .      : )

$select_sql =
 "(SELECT nvdtechnical.TECH_Value_Float ".
 "FROM nvdtechnical ".
 "WHERE TECH_TechCode = '11' ".
 "AND nvdtechnical.TECH_Id = capder.cder_ID ".
 "AND nvdtechnical.TECH_Value_Float BETWEEN 40 AND 59 ".
 "LIMIT 1".
 ") as MPG_VALUE ";

[SHORTCODE_Insert_Google_Adsence_Here]

Leave a Reply