title: PHP Ignore error and keep processing
body: <pre><code>class MyClass {
  
      public function __construct(){
      }
  
      private function makeError(){
          return sp('ABC'); // sp is undefined function
      }
  
      private function printMe(){
          echo "PRINT ME";
      }
  
      public function run(){
  
          try {
              $t = $this-&gt;makeError();
  
          }catch(Exception $e){
          }
  
          $this-&gt;printMe();       
      }
  }
  
  $t = new MyClass();
  $t-&gt;run();
  </code></pre>
  
  <p>If run above code, an error occur because sp() is not defined function.</p>
  
  <p>But I'd like to ignore the error and run printMe method.</p>
  
  <p>How should I do?</p>
  
  <p>Thanks!</p>