$array=str_to_arr($str) ; function str_to_arr($str) // string to array { $result = preg_split('//', $str, -1, PREG_SPLIT_NO_EMPTY); return $result; }