I am examining some PHP code written by somebody else, and they have basically named a variable
protected $text = null;
$this->text[$name] = new Text($age, $house);
This code is not faulty it's because it is writen in Object Oriented PHP.
When you declare an attribute in a php object, in that case
$text, you can later in that same class refer to that attribute as