note 8670 modified in strlen by ronabop

From: Date: Sat, 21 Oct 2000 22:50:22 +0000
Subject: note 8670 modified in strlen by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6811@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 ". thrashe http://www.php.net/manual/function.strlen.php

« previous php.notes (#6811) next »