PHP global variable inside a class

<?php$names = array(bob, john, mike);

foreach ($names AS $key => $value) {$GLOBALS[names][$key] = $value;}

echo USER::Name(2);

class USER{ function Name($a) {return $GLOBALS[names][$a]; }}?>

Related Posts

PHP preg_replace_callback, PHP trim words, PHP date