title: Can I/How to... call a protected function outside of a class in PHP
body: <p>I have a protected function that is defined within a certain class. I want to be able to call this protected function outside of the class within another function. Is this possible and if so how may I achieve it</p>
  
  <pre><code>class cExample{
  
     protected function funExample(){
     //functional code goes here
  
     return $someVar
     }//end of function
  
  }//end of class
  
  
  function outsideFunction(){
  
  //Calls funExample();
  
  }
  </code></pre>