Sorry, i posted this to my local newsfeed a while ago but i don't think it
is propogating properly, however i apologise if this appears twice.


i've been using private functions like the code below a little, and just
discovered that if you call the outside function more than once you get an
error. Apparently it doesn't like redeclaring the inside function the second
time you call the outside function... this seems strange to me.

Any help would be appreciated.

function foo(){

  function private_to_foo(){
   echo("this is private to foo\n");

  // call my private function
 echo("Hello, calling my private function....\n");

// call our function
echo("About to call foo\n");

// if you call it again it dies



PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to