new operator and reference error

后端 未结 3 1822
陌清茗
陌清茗 2021-01-28 09:50
 $class_name = \'MDB2_Statement_\'.$this->phptype;
        $statement = null;
        $obj =& new $class_name($this, $statement, $positions, $query, $types, $resu         


        
3条回答
  •  故里飘歌
    2021-01-28 10:06

    You can create reference of an object in php 5.3.10 using this way.

    $firstObj = new something();
    $referenceObj = &$firstObj;
    

提交回复
热议问题