Re: local function?

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: local function?
References: 1  Groups: php.dev php.general 
Request: Send a blank email to php-dev+get-22037@lists.php.net to get a copy of this message
Is there anything called local function? Try using OOP - classes to declare such fucntionality. -- Regards, -- Masood Nasir :-) [Systems Engineer] - http://www.masood.net ;) -- One Net, Lahore, Pakistan. <http://www.one.net.pk> On Thu, 22 Jun 2000, indrek siitan wrote: > Hi, > > is there a possibility to get the above code working without getting > the "cannot redeclare blah()" error? > > --- 8< --- > > <? > > function foo() { > function blah() { echo '<LI> foo'; } > blah(); > } > > function bar() { > function blah() { echo '<LI> bar'; } > blah(); > } > > foo(); > bar(); > > ?> > > --- 8< --- > > it's not ofcourse what i'm exacly needing, but it should describe > the problem good enough - is there a possibility do declare a > function that's not global? > > > Rgds, > Tfr > > --==< tfr@cafe.ee >==< http://tfr.cafe.ee/ > >==< +1-504-4467425 >==-- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#22037) next »