note 105085 added to language.namespaces.definitionmultiple

From: Date: Wed, 27 Jul 2011 03:20:43 +0000
Subject: note 105085 added to language.namespaces.definitionmultiple
Groups: php.notes 
Request: Send a blank email to php-notes+get-181924@lists.php.net to get a copy of this message
<?php // my test namespace FirstController; use FirstController as A1; class Test{ static public function HookMe($max=array()){ $messg = 'Accsept Class Loaded Well <br>'; Print $messg; print_r($max); } } function Cloader($ClassName){ $load = __NAMESPACE__ .'\\'.$ClassName; return new $load; } class Controller{ static public function load($ClassName){ return Cloader($ClassName); } } namespace SecondControll; function test($b){ print $b; } class Controller extends \FirstController\Controller{ static public function HookUP($v){ test($v); } static public function CHtml(){ $b = \FirstController\Cloader('Test'); return $b; } } use FirstController as Tr; Controller::HookUP('ayman <br>'); Controller::load('Test')->HookMe(array('F','G','H','<br>')); Controller::CHtml()->HookMe(array('BB','?O','&!','<br>')); Tr\Controller::load('Test')->HookMe(array('A','B','D','E','<br>')); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 196.205.239.213 ---- Manual Page -- http://www.php.net/manual/en/language.namespaces.definitionmultiple.php Edit -- https://master.php.net/note/edit/105085 Del: integrated -- https://master.php.net/note/delete/105085/integrated Del: useless -- https://master.php.net/note/delete/105085/useless Del: bad code -- https://master.php.net/note/delete/105085/bad+code Del: spam -- https://master.php.net/note/delete/105085/spam Del: non-english -- https://master.php.net/note/delete/105085/non-english Del: in docs -- https://master.php.net/note/delete/105085/in+docs Del: other reasons-- https://master.php.net/note/delete/105085 Reject -- https://master.php.net/note/reject/105085 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181924) next »