title: How to access object property when property name contains - (hyphen)
body: <p>I need an escape sequence for <code>-</code> or the minus sign for php. The object has a name-value pair where the name happens to be having <code>-</code> between 2 words.</p>
  
  <p>I can't do this using <code>\</code> the standard escape sequence (<code>-</code> isn't anyways documented).</p>
  
  <p>I can store the name in a <code>$myvariable</code> which can be used but out of curiosity is it possible to do the following?</p>
  
  <pre><code>$myobject-&gt;myweird-name
  </code></pre>
  
  <p>This gives an Error because of <code>-</code></p>