RE: [PHP] How to call Calling Non-Existing function

From: Date: Tue, 22 Jan 2002 09:54:06 +0000
Subject: RE: [PHP] How to call Calling Non-Existing function
Groups: php.general 
Request: Send a blank email to php-general+get-81504@lists.php.net to get a copy of this message
This generates a parse error if Draw_Table() doesn't exist rather than returning false, unless there's something in my set up that's different to yours. Tim www.chessish.com <http://www.chessish.com> ---------- From: val petruchek [SMTP:petruchek@zsu.zp.ua] Sent: 21 January 2002 11:22 To: php-general-return-81344-petruchek=zsu.zp.ua@lists.php.net Cc: PHP Subject: Re: [PHP] How to call Calling Non-Existing function 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 > >

« previous php.general (#81504) next »