note 42226 rejected from function.str-split by aidan
| From: | aidan@php.net | Date: | Tue, 01 Jun 2004 06:17:11 +0000 |
| Subject: | note 42226 rejected from function.str-split by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70382@lists.php.net to get a copy of this message | ||
Note Submitter: Carlos Reche
----
Another emulation of str_split() for older versions of PHP: (more simple!)
function str_split($string) {
for ($x = 0; $x < strlen($string); $x++) {
$array[$x] = substr($string, $x, 1);
}
return $array;
}