PHP: Is it possible to return multiple values ​​from a function?

Possible duplicate:
Multiple function returns

I have a function that should return multiple values. Is this possible, possibly with an array? If so, how would I refer to this array? Do I have alternatives to using an array?

+43
function php return
Aug 26 '10 at 22:01
source share

No one has answered this question yet.

See similar questions:

176
Multiple function returns
one
Return multiple values ​​from a method in a class
one
How to print an array if it is created in a function?
0
returning three variables to a function and checking them
-one
PHP 5 how to call multiple values ​​from one function?

or similar:

4270
Link. What does this symbol mean in PHP?
2414
Why shouldn't I use mysql_ * functions in PHP?
2335
Removing an element from an array in PHP
2256
Set the default value for the JavaScript function
1906
How does PHP foreach work?
1387
startsWith () and endsWith () functions in PHP
1104
PHP and enums
1065
Link. What does this error mean in PHP?
994
How to return multiple values ​​from a function?
972
Get the first element of an array



All Articles