Re: array()

From: Date: Tue, 05 Nov 2002 11:04:17 +0000
Subject: Re: array()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-122817@lists.php.net to get a copy of this message
Try this... $test_arr = test_func( $param1, $param2 ) echo $test_arr; On Tue, 2002-11-05 at 18:01, Francisco Vaucher wrote: > Hi people, > > is there a way to retrieve an array from a function ? > > like: > > <?php > > test_func($param1, $param2) { > > //code > > $test = array ("ASD" => "Test1", "ASDF" => > "Test2"); > return $test; > } > > //outiside de function > echo $test; // <----- the array > > ?> > > This doesn't work. So, any clue ? > > Regards and tks in advance! > > f. -- .: B i g D o g :.

« previous php.general (#122817) next »