View Single Post
Old 04-23-2009, 05:46 PM   #21 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Quote:
Originally Posted by allworknoplay View Post
But in PHP you do...

$test = "today\'s a great day";

Do you know if PHP is going to do something like this in the future so we don't have to use backslash if using double quotes?
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"
Salathe is offline  
Reply With Quote