您好我正在尝试执行以下 PHP 代码,但是我收到错误消息。我将引用传递给核心类,我想将其分配给类范围内的变量..
注意:数组到字符串的转换
提前致谢..
$core = new core($config);
$core->execute();
class core
{
private $config;
public function __construct(&$config)
{
$this->$config = $config;
}
public function execute()
{
$this->set_path();
}
private function set_path()
{
return true;
}
}