[FX.php List] Stumbled on something I hadn't realized...

Anders Monsen andersm at alamark.com
Thu Nov 13 12:25:32 MST 2008


If you pull in something like $_POST['nameFirst'] you may still need  
to concatenate:

"The first name is " . $_POST['nameFirst'] . " and the last name etc";

Anders

On Nov 13, 2008, at 1:19 PM, Bob Patin wrote:

> I wish I'd known that about 3 years ago! I've got tons of code where  
> I used $var." and then the text".$and_then_another_variable
>
> which is a huge pain...
>
>
> On Nov 13, 2008, at 1:15 PM, Steve Winter wrote:
>
>>
>> Hi Bob,
>>
>> That works so long as you use " " in your echo statement not ' '
>>
>> $name = "Bob";
>> echo "Hello $name"; // echos Hello Bob
>> echo 'Hello $name'; // echos Hello $name
>>
>> Cheers
>> Steve
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>



More information about the FX.php_List mailing list