note 111006 deleted from language.namespaces.faq by aharvey

From: Date: Tue, 08 Jan 2013 02:54:00 +0000
Subject: note 111006 deleted from language.namespaces.faq by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192822@lists.php.net to get a copy of this message
Note Submitter: rodrigodelimavieira at gmail dot com ---- There is a mistake in Example #8 Unqualified function or constant names: The function sort in namespace foo call itself in a endless recursive loop... I think that the right way to define foo\sort is: <?php function sort(&$a) { \sort($a); // call global function sort $a = array_flip($a); return $a; }

« previous php.notes (#192822) next »