Not sure what your talking about but php does have access modifiers
class phpfreak{
protected age;
protected height;
protected function getage(){
return $this->name;
}
protected function getheight(){
return $this->height;
}
}
class create_freak extends phpfreak{
public function create_freak($age, $height){
$this->age = 20;//protected
$this->height = 100;//Protected
}
public function get(){
return Array(parent::getage(), parent::getheight());
}
}
$create_a_freak = new create_freak();//calls constructor
print_r($create_a_freak.get()); //gets values