How to loop through all public variables in a class from inside the class?
How to get the public variables?
private function translate_null_values_to_strings(){
foreach($this->public_vars as $key => $value){
if(is_null($this->$key)) $this->$key = '';
}
}
ReflectionClass::getProperties(ReflectionProperty::IS_PUBLIC)