Perhaps if you’re using a standard text editor, but to be honest I never understood this convention when using a modern IDE. I can see all the details of a variable when using it anyway, so there’s no reason to have an odd naming preference.
Especially when all your class members are private, and exposed via a method interface. At that point, you’re not differentiating, you’re just making it harder to type.
You can’t refer to another variable upon instantiation of a class variable
You can’t use functions for the creation of a class variable (but you can use array(), of course array() is a language construct and not a regular function).
Why not do the following?
class CategoryModel {
private $array, $addressArray;
public function __construct() {
$this->array = array($_GET['rt']);
$this->addressArray = explode('/', $_GET['rt']);
}
}