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

Leo R. Lundgren leo at finalresort.org
Thu Nov 13 12:16:53 MST 2008


Hehe :-)

Check out http://www.php.net/manual/en/language.types.string.php  
under "Variable parsing" for more information as well regarding non- 
simple variable parsing (objects and such).


13 nov 2008 kl. 20.11 skrev Bob Patin:

> I didn't realize that in PHP you can write
>
> <?php
>
> $string = "Bob";
>
> echo "$string needs to read up on PHP.";
>
> ?>
>
> I've been writing this:
>
> echo $string." needs to read up on PHP.";
>
> It never occurred to me to that you could put variables inside  
> quotes like that and that they'd be echoed back rather than  
> displayed as text...
>
> I've been writing things the hard way all this time... sheesh...
>
> Hopefully this will save someone else some time...
>
> Bob Patin
> Longterm Solutions LLC
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> iChat/AIM: bobpatin
> FileMaker 9 Certified Developer
> Member of FileMaker Business Alliance
> --------------------------
> FileMaker hosting and consulting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
>
>
> _______________________________________________
> 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