class Person{
public $skills = array();
function __construct($skill){
$this->skills[$skill]=true;
}
}
$creativePerson = new Person('creativity');
$stupidPerson = new Person('stupidity');
//bad, will show "{"creativity":true,"stupidity":true}"
echo JSON::stringify(stupidPerson->skills);