title: How to call a function or method inside its own class in php?
body: <p>I declare my class in PHP and several functions inside. I need to call one of this functions inside another function but I got the error that this function is undefined. This is what I have:</p>
  
  <pre><code>&lt;?php
  class A{
  
   function b($msg){
     return $msg;
   }
  
   function c(){
     $m = b('Mesage');
     echo $m;
   }
  }
  </code></pre>