title: Is it possible to change a property of a class outside of the class? (PHP)
body: <p>I'm quite inexperienced with OOP PHP but here's my question...let's say I have this class with one property:</p>
  
  <pre><code>class myClass {
  
      public $property = array();
  
      public function getProperty() {
          return $this-&gt;property;
      }
  
  }
  </code></pre>
  
  <p>How would it be possible to change the value of $property without altering the class itself in any way, or by instantiating an object out of it, then changing its property. Is there any other way of doing it? Using scope resolution?</p>
  
  <p>Hope that makes sense, any help would be much appreciated.</p>