note 85455 deleted from language.namespaces by philip

From: Date: Fri, 28 Nov 2008 18:50:14 +0000
Subject: note 85455 deleted from language.namespaces by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147098@lists.php.net to get a copy of this message
Note Submitter: nickf ---- In response to Amir Abiri's comment: In this example: <?php //--- // global.php class A { public static function foo() { echo "static function"; } } //---- // namespace.php namespace A; function foo() { echo "namespace function"; } ?> The way to call each of these functions is like so: <?php A::foo(); // "namespace function" ::A::foo(); // "static function" ?> This could get pretty confusing, but at least now you know. :)

« previous php.notes (#147098) next »