Escaped characters substitution not working in double quote
Posted: Tue Jun 30, 2009 5:09 am
I have some strange behavior on this very simple test case:
What am I missing?
Shouldn't there be a newline and a tab in the double quote string?
Thank you.
Code: Select all
<?php
echo 'single: my \n \$ \t string';
echo '<br/>';
echo "double: my \n \$ \t string";
?>Code: Select all
output:
single: my \n \$ \t string
double: my $ stringShouldn't there be a newline and a tab in the double quote string?
Thank you.