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 ?
test_func($param1, $param2) {
$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!

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to