How can i Have a function who returns 2 variables?
| From: | Saci | Date: | Sat, 29 Jun 2002 08:21:57 +0000 |
| Subject: | How can i Have a function who returns 2 variables? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14468@lists.php.net to get a copy of this message | ||
I need to discover how can I do to one function who change or set 2
variables without the use of global, the idea is to pass variable by
reference not by value.
For example
a = 'none'
b = 'none'
c= 'none'
d= 'none'
myfunctioncall( a,b)
echo a ; // will show 'value1'
echo b ; // will show 'value2'
b = 'value2'
myfunctioncall( c,d)
echo c ; // will show 'value1'
echo d ; // will show 'value2'
In Delphi I made on that way
procedure ( var value1: String ; var value2: String)
Any tips?