Re: Undefined Functions
| From: | Rasmus Lerdorf | Date: | Mon, 23 Dec 2002 04:16:14 +0000 |
| Subject: | Re: Undefined Functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129137@lists.php.net to get a copy of this message | ||
An undefined function error has nothing to do with where you are calling
the function from. It has to do with whether or not you have defined the
function you are calling.
-Rasmus
On Sun, 22 Dec 2002, Beauford.2002 wrote:
> Hi,
>
> I previously asked a question about getting undefined function errors in my
> script and someone mentioned that it may be that I am calling it from within
> an if or else statement. This turned out to be the case. Now the question -
> is there a way around this? What I need to do resolves around many different
> conditions, and depending on the what's what I call the necessary function.
> I have looked my script over and over and can not see any other way of doing
> this. I am fairly new to PHP and maybe there is a better way, and I'm open
> to suggestions.
>
> TIA
>
> Example:
>
> if ($a == $b) call function one;
>
> elseif ($a > $b) call function two;
> elseif ($a == $c) call function two;
> elseif ($a < $b) call function two;
> elseif ($c > $b) call function two;
> elseif ($d == $e) call function two;
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>