Hi
I have a 4 random character string which I is passed to me via an external website and I store it in my database. What I want to do is to split the string into an array as such:
// This is obtained from the external website
$string = "1234";
// this is what I want to do with it
$myarray[0] = "1";
$myarray[1] = "2";
$myarray[2] = "3";
$myarray[3] = "4";
PHP 5 allows me to do this seamlessly with the following:
str_split($string);
But the hosts are running PHP 4 and this function is not supported.
Can anyone suggest an alternative method for me to achieve this?
Many Thanks
K