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