Re: namespaces

From: Date: Sun, 16 Feb 2003 12:01:11 +0000
Subject: Re: namespaces
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-930@lists.php.net to get a copy of this message
MK>> <?php MK>> namespace foo { MK>> class bar { MK>> function fubar() { MK>> print "123"; MK>> } MK>> } MK>> MK>> print bar::fubar(); MK>> } MK>> ?> For now, you can't have "free code" in namespace. Just like in C or Java, the code should be in a function. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109

« previous php.zend-engine.cvs (#930) next »