characters
characters
Using PHP To Split A String Into Characters
Tue, 09/02/2008 - 09:17 | by philipnorton42Use the following code to split a string into an array of characters.
$chars = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY);
It uses the preg_split() PHP function which takes a number of parameters. These area as follows: