You are here: Re: problem returning value using recursive function « All PHP « IT news, forums, messages
Re: problem returning value using recursive function

Posted by Vince Morgan on 04/12/07 14:22

"Steve" <no.one@example.com> wrote in message
news:juqTh.10$G46.6@newsfe04.lga...
>
> "Vince Morgan" <vinhar@REMOVEoptusnet.com.au> wrote in message
> news:461e2d34$0$15781$afc38c87@news.optusnet.com.au...
> |
> | "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) {
> | >

I should have gone to bed long ago. You are clearly dead Right!!
This mess of var names has screwed with my head. I've see $i and $1 as the
same var!
My applogies for doubting you Steve, I should have known better.
Please excuse me Rienk.
Regards,
Vince

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация