//PHP Reflection Class is to create a instance of a class which name isspecified ?php class abc { private $p1; private $p2; function __construct($array) { $this-p1 = $array [0]; $this-p2 = $array [1]; } function getP1() { return $this-p1;
//PHP Reflection Class is to create a instance of a class which name is specified
蓝海豚PHP购物导航程序(以下简称 LSV!)是蓝海豚项目组随着Lht团购导航软件之后推出的又一套通用的PHP开源购物导航软件系统。作为国内最大的电子商务导航软件及服务提供商,蓝海豚旗下的LSV产品,无论在功能、稳定性、负载能力、安全保障等方面都居于国内外同类产品领先地位,是目前全国成熟度最高、覆盖率最大的电子商务购物软件系统程序。使用蓝海豚购物导航程序建站有以下四大优势: 1:技术领先,程序稳
class abc {
private $p1;
private $p2;
function __construct($array) {
$this->p1 = $array [0];
$this->p2 = $array [1];
}
function getP1() {
return $this->p1;
}
function getP2() {
return $this->p2;
}
}
$arr = array (0 => 'p1', 1 => 'p2' );
$class = new ReflectionClass ( 'abc' );
$aObj = $class->newInstance ( $arr );
echo $aObj->getP1 ();
echo $aObj->getP2 ();
?>










