Re: [PHP-GTK] Help with class constants

[email protected] (bob majdak jr)
Newsgroups php.gtk.general
Organization KateOS
Message-ID <[email protected]>
� 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.

?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.