explode help
Posted: Sat Apr 22, 2006 3:34 pm
how would I explode a variable by characters like:
Code: Select all
<?PHP
$variable = 'hello all';
/* explode
$var = explode('', $variable);
*/
$var[0] = 'h';
$var[1] = 'e';
$var[2] = 'l';
$var[3] = 'l';
$var[4] = 'o';
$var[5] = ' ';
$var[6] = 'a';
$var[7] = 'l';
$var[8] = 'l';
?>