Returning an Array from a Function
Posted: Thu May 27, 2004 4:03 pm
Would someone be kind enough to post a simple/minimal example of how a function, my_function, would return an array of two strings, say "abc" and "def" (versus returning a single value).
I've looked in O'reilly's PHP book on page 339 (for those that have it) but I can't get it to work, I suspect because the example isn't a real example.
Thanks,
Peter.
I've looked in O'reilly's PHP book on page 339 (for those that have it) but I can't get it to work, I suspect because the example isn't a real example.
Thanks,
Peter.