title: Overload PHP methods
body: <p>I know that overloading in PHP is not available, and there is a workaround with the func_get_args. But my question is what could I do if I want to make a static and a non static version of the same method? For example I have a Profiles_Model class. Sometimes I may only want to get all profiles but nothing more, so I don't want to instantiate an object, calling a static method would be enough like: </p>
  
  <blockquote>
    <p>Profiles_Model::getProfiles();</p>
  </blockquote>
  
  <p>But sometimes I may have an instantiated object from the class and I use other methods, and I would like if not only the class but the object itself had the same method like: </p>
  
  <pre><code>$pmodel=new Profiles_Model();
  $pmodel-&gt;getProfiles();
  </code></pre>
  
  <p>Is there any solutions? This is what I would like:</p>
  
  <pre><code>class Profiles_Model extends Model{
      .
      .
      .
      public function getProfiles(){
          // do some stuff
      }
  
      public static function getProfiles(){
          // do some stuff with the same results
      }
  
  }
  </code></pre>