> * Thus wrote 386-DX ([EMAIL PROTECTED]): > > Hello. Let's say I have something like this: > > > > function aa($test) { > > $a = 8; > > echo $test; > > } > > > > $a = 2; > > aa("a is ". ($a>5?"greater":"equal to or less"). " than 5".); > > http://php.net/eval
No... you need to make $a global within the function for that change to affect $a outside the function function (...) { global $a; $a = 8; (can maybe do that in one operation, try it and see) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php