just discovered this strange behaviour in php, quite irritating actually:
echo '\\.'."\n"; echo '\.'."\n";
output:
\. \.
to get two backslashes while using single-quotes, you need to do the following
echo '\\\.'."\n";
|
|||||
php escaping in single-quotesjust discovered this strange behaviour in php, quite irritating actually: echo '\\.'."\n"; echo '\.'."\n"; output: \. \. to get two backslashes while using single-quotes, you need to do the following echo '\\\.'."\n"; |
|||||
|
Copyright © 2010 work in progress … - All Rights Reserved |
|||||