Re: Help on OOP

From: Date: Sat, 07 Dec 2002 23:02:56 +0000
Subject: Re: Help on OOP
Groups: php.general 
Request: Send a blank email to php-general+get-127399@lists.php.net to get a copy of this message
hi, a function can be defined from inside another function! this works here: <?php function howru() { function hi() { echo "hi,"; } hi();echo "how r u"; } howru(); hi(); ?> this gives the same result: <?php function hi() { echo "hi,"; } function howru() { hi();echo "how r u"; } howru(); hi(); ?> It seems that even calling the function again from any place works! Regards, Khalid al-kary _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

« previous php.general (#127399) next »