local function?
| From: | indrek siitan | Date: | Thu, 22 Jun 2000 20:07:26 +0000 |
| Subject: | local function? | ||
| Groups: | php.dev php.general | ||
| Request: | Send a blank email to php-dev+get-21978@lists.php.net to get a copy of this message | ||
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 >==--