Re: Recursive function within a class

From: Date: Tue, 10 Jun 2003 01:11:47 +0000
Subject: Re: Recursive function within a class
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-20256@lists.php.net to get a copy of this message
You can, you just need to use the $this variable, so $this->a($y) "Olafsson" <pallagust@hotmail.com> wrote in message news:20030307181129.63805.qmail@pb1.pair.com... > Hello > > I´ve a small problem. I´ve created a class with serveal functions but when > I try to make a recursive function within the class it generates an error > > Fatal error: Call to undefined function: getforum() in > C:\riddarinn\clsForum.php on line 55 > > Isn´t it possible to make a recursive functions within a class like this; > > class cClass > { > function a($x) > { > ... > a($y); > } > } > > thanx > Oli > >

« previous php.windows (#20256) next »