Re: return array

From: Date: Fri, 07 Jun 2002 02:56:14 +0000
Subject: Re: return array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101064@lists.php.net to get a copy of this message
On Friday 07 June 2002 10:56, Jule Slootbeek wrote: > Hey guys and gals, > > if i have a function > and i return an array from it > > function my_function() { > blabla; > return array ($array['name'], $array['password']); > } > > how do i get this into an array on the page i call the function? > > $array = my_function() doesn't work? try: list($doo, $dah) = my_function(); -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* If A equals success, then the formula is _A = _X + _Y + _Z. _X is work. _Y is play. _Z is keep your mouth shut. -- Albert Einstein */

« previous php.general (#101064) next »