04-23-2009, 06:02 PM
|
#22 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Salathe
No you don't. In your example, if you echoed $test, the output would be today\'s a great day, backslash and all.
Look no slashes:
PHP Code:
$test = "today's a great day";
|
Wow!! I've always thought you had to do that.... this is what I mean by fundamentals...and I've read like 50 PHP books and articles....
Anyways, so if you do this, you will get a parse error:
Code:
$test = "<a href="me.html">hey</a>";
echo $test;
So I guess you can't have double quotes within double quotes since the PHP parser doesn't know when to start and end?
<--- Smacks head!!!
I think we need a "smack head" icon....
|
|
|
|