That's how you could do it ...
$ar = array();
$len = strlen($a);
for ($i = 0; $i < $len; ++$i) {
$ar[] = $a{$i};
}
HTH
Richard
Friday, April 16, 2004, 11:00:49 PM, you wrote:
> Hi
> I have i Problem i got a variable a=2351 now i need to create an array out of this
> variable
> a[0]=1
> a[1]=3
> a[2]=5
> a[3]=1
> I have an idea to use the modulo function an do some Math but im
> sure there is a nicer way of solving my prob
> thx Flavio
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php