title: PHP - Accessing a object property from dynamic variable
body: <p>I'm looking for accessing a property of a object property of an object like this :</p>
  
  <pre><code>$property = "user-&gt;name";
  echo $object-&gt;$property; // ??, I want $object-&gt;user-&gt;name
  </code></pre>
  
  <p>I tried a lot of things, but none seems work.</p>
  
  <p>Thanks</p>