Re: Assoiative Array and Accessing Them

From: Date: Sun, 18 May 2003 17:48:35 +0000
Subject: Re: Assoiative Array and Accessing Them
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148103@lists.php.net to get a copy of this message
On Sunday 18 May 2003 09:32, KEN - 2mediaZone wrote: > Hi, I'm trying to do one job here. > Please take look at a simple foreach loop below first. > > foreach($result_p as $key => $value) > > { > > $result[] = $result_p[$key]; > > } [snip] Could you give the output of print_r($result_p)? It's easier to visualise the problem given some real life data. Of course, if $result_p contains 1000's of values just list the first 5-10 values. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* "Buy land. They've stopped making it." -- Mark Twain */

« previous php.general (#148103) next »