|
Posted by Vince Morgan on 04/12/07 13:01
"Vince Morgan" <vinhar@REMOVEoptusnet.com.au> wrote in message
news:461e2c62$0$16555$afc38c87@news.optusnet.com.au...
> "Rienk Withaar" <r.g.withaar@rug.nl> wrote in message
> news:evl3vj$abq$2@info.service.rug.nl...
> > Hello, I have the following problem:
> >
> > I want my function to return a value, $l, using the following function:
> >
> > function level($n,$l=0,$d=false) {
> > if ($d) { return $l; }
> > else {
> > $ff=get_folders();
> > for ($i=0;$i<count($ff);$i++) {
> > if ($n==$ff[$i][0]) {
> > if ($ff[$i][4]!=0) {
>
> Post-incrementing here will cause$1 to be incremented by 2 on the next
> recursion.
Sorry, that should read "when you enter the next recursion".
Navigation:
[Reply to this message]
|