View Single Post
Old 04-23-2009, 06:02 PM   #22 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by Salathe View Post
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....
allworknoplay is offline  
Reply With Quote