I have the following in a class.
class My_Class {
$x = 'happy';
$y = array( 'iam' => $this->x);
//getting a 500 error with that.
function __construct() {
// scripts, etc
}
}
I get an unexpected $this (T_VARIABLE). Any thoughts?