Creating an object from the Cat class : gettype « Reflection « PHP






Creating an object from the Cat class

 
<?php
class Cat {
}

$fluffy = new Cat(  );
echo gettype($fluffy);
?>
  
  








Related examples in the same category

1.Displaying the Type of a Variable