Re: How to call Calling Non-Existing function
| From: | val petruchek | Date: | Mon, 21 Jan 2002 11:22:08 +0000 |
| Subject: | Re: How to call Calling Non-Existing function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81347@lists.php.net to get a copy of this message | ||
Not sure this is exactly what you need but try this:
@Draw_Table() or default_func();
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:val@zliypes.com.ua
----- Original Message -----
From: "S. Murali Krishna" <smk_bk@yahoo.com>
To: "PHP List" <php-general@lists.php.net>
Sent: Monday, January 21, 2002 1:17 PM
Subject: [PHP] How to call Calling Non-Existing function
>
> Hi PHP Experts,
>
> Is there any way to call a non-existent or undeclared function
> and redirect the call to someother function by knowing its non-existense.
>
> Is there any try() and catch() idea or any configurations,
> or may be either error handler like thing.
>
> for example if I call a function 'Draw_Table()' without declaring like
> this
>
> Draw_Table();
>
> it should know the non-existense of Draw_Table() and redirect to
> 'default_func'
>
> function default_func()
> {
> ....
> }
>
> Note:
> ----
> Perl programmers please recollect 'AUTOLOAD' Method of a package.
> C++,Java programmers please recollect exception handling.
>
>
> Thanks in Advance.
>
> S.Murali Krishna
> smk_bk@yahoo.com
> =====================================
> We grow slow trying to be great
>
> - E. Stanley Jones
> -------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>