Re: Recursive function within a class
| From: | Thomas Smart | Date: | Fri, 07 Mar 2003 19:28:03 +0000 |
| Subject: | Re: Recursive function within a class | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18907@lists.php.net to get a copy of this message | ||
im not sure if i understand your question completely
but u can call a function in a class like so
classname::functionname($vars);
"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
>
>