note 30855 added to functions
| From: | danfis at email dot cz | Date: | Tue, 01 Apr 2003 11:18:44 +0000 |
| Subject: | note 30855 added to functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46062@lists.php.net to get a copy of this message | ||
I have one big problem I need do something like this and I can't:
<?
$pole[0]=1;
$pole[1]=2;
$pole[2]=3;
$pole[3]=4;
$a=0;
function rekurze($b){
if ($a<3){
$a=$a+1;
rekurze($pole[a]); //HERE IS THE PROBLEM
}
echo $b;
echo "<BR>";
}
rekurze ($pole[0]);
?>
I need to call function inside same function . Can I do it? How?
--
http://www.php.net/manual/en/functions.php
http://master.php.net/manage/user-notes.php?action=edit+30855
http://master.php.net/manage/user-notes.php?action=delete+30855
http://master.php.net/manage/user-notes.php?action=reject+30855