Can I get the value of a private property with Reflection?
===

It doesn't seem to work:

    $ref = new ReflectionObject($obj);
    
    if($ref->hasProperty('privateProperty')){
      print_r($ref->getProperty('privateProperty'));
    }

It gets into the IF loop, and then throws an error:

> Property privateProperty does not exist

:|


`$ref = new ReflectionProperty($obj, 'privateProperty')` doesn't work either...

The [documentation page][1] lists a few constants, including `IS_PRIVATE`. How can I ever use that if I can't access a private property lol?


  [1]: http://www.php.net/manual/en/class.reflectionproperty.php