title: Object Oriented Programming -> Operator
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3737139/reference-what-does-this-symbol-mean-in-php">Reference - What does this symbol mean in PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>So I've been reading through the book <em>PHP Solutions, Dynamic Web Design Made Easy</em> by David Powers. I read through the short section on Object Oriented PHP, and I am having a hard time grasping the idea of the -> operator. Can anyone try to give me a solid explanation on the -> operator in OOP PHP?</p>
  
  <p>Example:</p>
  
  <pre><code>$westcost = new DateTimeZone('America/Los_Angeles');
  $now-&gt;setTimezone($westcoast);
  </code></pre>
  
  <p>Also,a more general example:</p>
  
  <pre><code>$someObject-&gt;propertyName
  </code></pre>