Hi, Monday, September 8, 2003, 11:54:10 AM, you wrote: L> How do I get a function to return an array? This code doesn't work:
L> function getData() {
L> <function builds the array $theArray - tested ok>
L> return $theArray;
L> }
L> Any help on the syntax would be appreciated.
L> Cheers
L> Leonie
That should work
what do you get with this:
$array = getData();
print_r($array);
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

