I don't understand why doesn't this code work:
<?php
class Test {
private $BIG = array(
'a' => 'A',
'b' => 'B',
'c' => 'C'
);
private $arr2 = array(
$this->BIG['a'],
$this->BIG['b'],
'something'
);
public function getArr2(){
return $this->arr2;
}
}
$t = new Test();
print_r($t->getArr2());
?>
I get this error:
Parse error: syntax error, unexpected T_VARIABLE, expecting ')' in /home/web/te/test.php on line 11