Re: array()
| From: | John Nichel | Date: | Tue, 05 Nov 2002 18:09:21 +0000 |
| Subject: | Re: array() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122819@lists.php.net to get a copy of this message | ||
Ugh. Read the in the manual about variable scope, and how to call a function. It's all there. To get you started...
print_r ( test_func() );
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.