note 46329 added to function.explode
| From: | ywitczak at caramail dot com | Date: | Thu, 07 Oct 2004 09:38:22 +0000 |
| Subject: | note 46329 added to function.explode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78116@lists.php.net to get a copy of this message | ||
To get each character of a string just access it like an array :
$String = 'abcdef';
for($i=0; $i<strlen($String ); $i++)
{
PRINT('|'.$String [$i]);
// $String [$i] is one character of this string
}
----
Manual Page -- http://www.php.net/manual/en/function.explode.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46329
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46329&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46329&report=yes
Search -- http://master.php.net/manage/user-notes.php