title: How to pass object to function in method
body: <p>I am tying to do following </p>
  
  <pre><code>class abc{
  
     public function abc(){
  
        someFunction(){
            now here I can not call bcg function like due to scope of function 
            function bcg(){
                 $this-&gt;bcg();
           }
  
        }
  
     }
  
     public function bcg(){
       ...
     }
  }
  </code></pre>
  
  <p>Now my question is how to pass object of current class to function which in method of class ?</p>