note 58243 deleted from function.str-split by aidan
| From: | aidan@php.net | Date: | Sat, 04 Feb 2006 07:13:52 +0000 |
| Subject: | note 58243 deleted from function.str-split by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-102960@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Lazy man's replacement:
<?php
preg_split('/(.{'.$length.'})/', $string, -1, PREG_SPLIT_DELIM_CAPTURE |
PREG_SPLIT_NO_EMPTY);
?>