note 20099 added to function.strlen
| From: | joel at alpsgiken dot gr dot jp | Date: | Fri, 22 Mar 2002 09:09:41 +0000 |
| Subject: | note 20099 added to function.strlen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28068@lists.php.net to get a copy of this message | ||
Note that the square bracket syntax is deprecated as of PHP 4, and that curly braces are preferred.
(Maybe this is a precursor to proper Unicode characters?)
$myLength = strlen( $s );
for ( $i = 0; $i < myLength; ++$i )
{ $ch = $s{ $i };
...
}
--
http://www.php.net/manual/en/function.strlen.php
http://master.php.net/manage/user-notes.php?action=edit+20099
http://master.php.net/manage/user-notes.php?action=delete+20099
http://master.php.net/manage/user-notes.php?action=reject+20099