Re: Help with class constants
| From: | bob majdak jr | Date: | Sun, 29 Jul 2007 06:52:46 +0000 |
| Subject: | Re: Help with class constants | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-8004@lists.php.net to get a copy of this message | ||
� wrote:
My question: how can I know if a class constant is defined?Ohh. This is what she was talking about. Surprised nobody replied yet. Here have a code snippit. <?php if(defined('Gtk::TYPE_STRING')) { echo("we should use Gtk::TYPE_STRING.\n"); } else if(defined('GObject::TYPE_STRING')) { echo("we should use GObject::TYPE_STRING.\n"); } // - bob. ?>