note 8670 added to strlen
| From: | thrasher at dds dot nl | Date: | Sat, 23 Sep 2000 02:58:36 +0000 |
| Subject: | note 8670 added to strlen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5354@lists.php.net to get a copy of this message | ||
Well, 'strings & special characters' which can be pretty unclear to me.
To find out how these 'escaped' characters are handled, I tried to following.
<?
$string1 = 'My name is "T"';
$string2 = "My name is \"T\"";
print strlen ($string1);
print "<br>";
print strlen ($string2);
?>
The output is:
14
14
So for lenght-purposes \" is identical to ". But my question is: is there any level or
purpose in PHP where \" and " do differ or can make a difference?
Please let us know!
thrasher,
http://www.php.net/manual/function.strlen.php