Re: Array Problem

From: Date: Sun, 18 Apr 2004 11:55:00 +0000
Subject: Re: Array Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183760@lists.php.net to get a copy of this message
On 16-Apr-2004 Flavio Fontana 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 > $a = preg_split('||', $a, -1, PREG_SPLIT_NO_EMPTY); Regards, -- Don Read dread@ispwest.net -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it.

« previous php.general (#183760) next »