On Mar 14, 2008, at 3:10 PM, Stut wrote:
On 14 Mar 2008, at 19:03, Eric Gorr wrote:Unfortunately, such things cannot be used to wrap functions.Erm, yes they can. Try it. <?php if (rand(0,1) == 0) { function arse() { echo "arse 1\n"; } } else { function arse() { echo "arse 2\n"; } } arse(); ?>
Gives:Parse error: syntax error, unexpected T_STRING in /Users/Eric/Sites/ ifWrapping.php on line 3
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php