I have a short title and message that I want to show, defining the following:
class A {
public $name = 'Mark';
public $entry = array(
'title' => 'Some title',
'message' => 'Hi '.$name
);
// Constructor
public function __construct() {}
// Some other functions
}
This isn't working.
Can someone explain why? Should I go for separate variables instead or is there a better way? Thanks for your time.
EDIT