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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP] Help on OOP Mohd_Q
- [PHP] Re: Help on OOP David Eisenhart
- [PHP] Re: Help on OOP Craig
- Re: [PHP] Help on OOP Khalid El-Kary
- Re: [PHP] Help on OOP Khalid El-Kary
- RE: [PHP] Help on OOP Matt Giddings
- RE: [PHP] Help on OOP Khalid El-Kary