hello I have this PHP class
   class myclass{
       function name($val){
           echo "this is name method and the value is".$val;
       }
       function password($val){
           echo "this is password method and the value is".$val;
       }
   }
and here is how to use it:
  $myclass= new myclass();
  $myclass->name("aaa")//output: this is name method and the value is aaa
it works fine because I just have 2 methods "name" and "password" what If I have a huge number of methods, it would not be easy to add those methods to my class and write the same code for each method, I want to change my class to let each method give the same output apart from the method name? and I don't want to write all details for all methods because they are almost similar,is this possible in PHP? I wish I was clear :)