Re: Array Problem

From: Date: Sun, 18 Apr 2004 03:07:50 +0000
Subject: Re: Array Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183753@lists.php.net to get a copy of this message
Hi, Saturday, April 17, 2004, 7:00:49 AM, you wrote: FF> Hi FF> I have i Problem i got a variable a=2351 now i need to create an array out of this variable FF> a[0]=1 FF> a[1]=3 FF> a[2]=5 FF> a[3]=1 FF> I have an idea to use the modulo function an do some Math but FF> im sure there is a nicer way of solving my prob FF> thx Flavio If you treat the variable as a string it is already an array of characters try echo $a{0}; -- regards, Tom

« previous php.general (#183753) next »