note 46329 deleted from function.explode by aidan
| From: | aidan@php.net | Date: | Thu, 07 Oct 2004 10:24:53 +0000 |
| Subject: | note 46329 deleted from function.explode by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78118@lists.php.net to get a copy of this message | ||
Note Submitter: ywitczak at caramail dot com
----
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
}