note 87265 deleted from function.substr by danbrown
| From: | danbrown@php.net | Date: | Thu, 27 Nov 2008 17:08:14 +0000 |
| Subject: | note 87265 deleted from function.substr by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147044@lists.php.net to get a copy of this message | ||
Note Submitter: Binu chandran E
----
/**
* Get all characters from a string
**/
$string = "This is an example string";
for($i = 0; $i <= strlen($string); $i++)
{
$char = substr($string, $i, 1);
echo $char . "<br />";
}