Actually, if you did intend to convert the string into an array, drawmack's code should work except that you should return $retval, not $word, which is probably a typo.
drawmack, I thought that one should take the evaluation of strlen() out of the test condition? Wouldnt that be more efficient?
i.e. a possible function:
function strToArray($word) {
$retval = array();
$len = strlen($word);
for ($i = 0; $i < $len; $i++) {
$retval[] = $word{$i};
}
return $retval;
}