>$a = "whatever";
>$b = "abc $a def";
>echo $b;
>
>which results in "abc whatever def" ???
>
>What am I missing?

$b = "abc $a def";

That gets parsed because it's in double-quotes. Since $a is a variable, it
inputs whatever $a is, in this case "Whatever". So it ends up printnig out
"abc whatever def". To fix it, either escape the $a, or use single-quotes.

--Jason


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to