Thread
:
Return functions
View Single Post
#
3
(
permalink
)
09-27-2006, 08:43 PM
Nightracer
Programmer
Join Date: Jun 2006
Posts: 131
Credits:
0
Rep Power:
10
Why not pass it by reference?
PHP Code:
$variable
=
myFunc
(
$v1
, &
$v2
);
This way you get $variable back and whatever is done to $v2 in the function changes the variable outside of the function.
Nightracer
View Public Profile
Send a private message to Nightracer
Find all posts by Nightracer