Posted by milahu on 05/22/06 16:56
You can either use globals (a) or pass a variable pointer to the function (b). a) $foo = true; function f($a, $b) { global $foo; $foo = false; } f(1, 2); b) $foo = true; function f($a, $b, &$global) { $global = false; } f(1, 2, $foo); Cheers
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming