note 124669 deleted from language.constants by cmb

From: Date: Sat, 01 Feb 2020 13:40:15 +0000
Subject: note 124669 deleted from language.constants by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213984@lists.php.net to get a copy of this message
Note Submitter: Sumon Mahmud (Abu Taleb) ---- we can also use define() function in the constructor of a class like following: class Abc{ public function __construct(){ define('TEST', 'hello world!'); } public function getOutput(){ echo TEST; } } $obj = new Abc(); $obj->getOutput();

« previous php.notes (#213984) next »