split
split
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:
Split An Array Into Smaller Parts In PHP
Sat, 05/17/2008 - 15:00 | by philipnorton42Splitting an array into sections might be useful for setting up a calendar or pagination on a site. Either way there are numerous ways to do this but the following seems to be the quickest and most reliable method.