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:[EMAIL PROTECTED]]
        Sent:  21 January 2002 11:22
        To:  [EMAIL PROTECTED]
        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:[EMAIL PROTECTED]
        ----- Original Message -----
        From: "S. Murali Krishna" <[EMAIL PROTECTED]>
        To: "PHP List" <[EMAIL PROTECTED]>
        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
        > [EMAIL PROTECTED]
        > =====================================
        > We grow slow trying to be great
        >
        >    - E. Stanley Jones
        > -------------------------------------
        >
        >
        > --
        > PHP General Mailing List (http://www.php.net/)
        > To unsubscribe, e-mail: [EMAIL PROTECTED]
        > For additional commands, e-mail: [EMAIL PROTECTED]
        > To contact the list administrators, e-mail:
[EMAIL PROTECTED]
        >
        >

        

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to