Mega Code Archive

 
Categories / Php / Class
 

Using the - and

<?php     class Cat {     } class MyCat extends Cat {     function MyCat(  ) {     }     public static function hypnotize(  ) {       echo ("The cat was hypnotized.");       return;     } } MyCat::hypnotize(  ); $h_cat = new MyCat(  ); $h_cat->hypnotize(  );