I\'m trying to make a PHP (5) object that can iterate through its properties, building an SQL query based only on its public properties, not its private ones.
As this pa
$propertyName = 'bar'; if(in_array(propertyName, array_keys(get_class_vars(get_class($yourObject))))) { }