note 71996 deleted from function.define by tularis

From: Date: Sun, 03 Jun 2007 09:38:33 +0000
Subject: note 71996 deleted from function.define by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127144@lists.php.net to get a copy of this message
Note Submitter: mort ---- define gives also quite nice tool to prevent including classes two times: <? if(!defined("MYCLASS_PHP")) { define("MYCLASS_PHP", null); class MyClass { /* class body */ } } // endif ?>

« previous php.notes (#127144) next »