title: defining a class within the function
body: <p>I'm just learning the php and came out a question in my mind, Can I define the class within the function like this:</p>
  
  <pre><code>public class test{
    public function newtest(){
      // defining a class here like this:
      public class funclass{
       .....
      }
    }
  }
  </code></pre>