View Single Post
  #3 (permalink)  
Old 09-27-2006, 08:43 PM
Nightracer's Avatar   
Nightracer Nightracer is offline
Programmer
 
Join Date: Jun 2006
Posts: 131
Credits: 0
Rep Power: 10
Nightracer is on a distinguished road
Default

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.
Reply With Quote