Re: local function?
| From: | Yurais Fernandez Leal | Date: | Sat, 24 Jun 2000 14:36:35 +0000 |
| Subject: | Re: local function? | ||
| References: | 1 | Groups: | php.dev php.general |
| Request: | Send a blank email to php-dev+get-22229@lists.php.net to get a copy of this message | ||
An example for implementing this example with classes ?
On Fri, 23 Jun 2000, Masood Nasir wrote:
masood:
masood: Is there anything called local function? Try using OOP - classes to
masood: declare such fucntionality.
masood:
masood: -- Regards,
masood: -- Masood Nasir :-) [Systems Engineer] - http://www.masood.net ;)
masood: -- One Net, Lahore, Pakistan. <http://www.one.net.pk>
masood:
masood: On Thu, 22 Jun 2000, indrek siitan wrote:
masood:
masood: > Hi,
masood: >
masood: > is there a possibility to get the above code working without getting
masood: > the "cannot redeclare blah()" error?
masood: >
masood: > --- 8< ---
masood: >
masood: > <?
masood: >
masood: > function foo() {
masood: > function blah() { echo '<LI> foo'; }
masood: > blah();
masood: > }
masood: >
masood: > function bar() {
masood: > function blah() { echo '<LI> bar'; }
masood: > blah();
masood: > }
masood: >
masood: > foo();
masood: > bar();
masood: >
masood: > ?>
masood: >
masood: > --- 8< ---
masood: >
masood: > it's not ofcourse what i'm exacly needing, but it should describe
masood: > the problem good enough - is there a possibility do declare a
masood: > function that's not global?
masood: >
masood: >
masood: > Rgds,
masood: > Tfr
masood: >
masood: > --==< tfr@cafe.ee >==< http://tfr.cafe.ee/
>==< +1-504-4467425 >==--
masood: >
masood: > --
masood: > PHP General Mailing List (http://www.php.net/)
masood: > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
masood: > For additional commands, e-mail: php-general-help@lists.php.net
masood: > To contact the list administrators, e-mail: php-list-admin@lists.php.net
masood: >
masood:
masood:
masood:
--
----------------------------------
Yurais Fernández Leal
MediRed Network SysAdmin.
yurais@medired.scu.sld.cu
http://www.scu.sld.cu/
ICQ: 33792610 ICQ-GW: 1031
Phone: (53) 226-54204
------------