note 45258 deleted from language.oop by danbrown

From: Date: Sat, 07 Nov 2009 19:03:46 +0000
Subject: note 45258 deleted from language.oop by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162568@lists.php.net to get a copy of this message
Note Submitter: babs at sntteam dot org ---- We can't split the class declaration in multiple PHP section but we can exit php tag in a function . ex : <? class plop { function plop() { $this->whatever = "bar"; } function foo() { ?> <pre>foo returns <?=$this->whatever?></pre> <? } }; $a = new plop; $a->foo(); ?> will print : foo returns bar PHP Version 4.3.8-9

« previous php.notes (#162568) next »