Functions defined within other functions

From: Date: Wed, 30 Aug 2000 22:16:47 +0000
Subject: Functions defined within other functions
Groups: php.general 
Request: Send a blank email to php-general+get-14475@lists.php.net to get a copy of this message
I couldn't find any explanation of functions defined within other functions in the PHP manual. If they are not documented, I propose that they are documented. Example of an inner function: <?php function Outer() { function Inner() { print 'bar'; } print 'foo'; Inner(); print "\n"; } Outer(); ?> -- | Heikki Korpela | heikki.korpela@wapit.com | tel. +358 50 3838 609 | | Software Developer, Wapit Finland | http://www.wapit.com | -- "Even though it does not work, how does it feel?"

« previous php.general (#14475) next »