- var_dump: documentation ( source)
- strtok: documentation ( source)
<?php
interface ShipInterface {}
abstract class AbstractShip implements ShipInterface {}
class ShipOnlyAbstract extends AbstractShip {}
class ShipWithInterface extends AbstractShip implements ShipInterface {}
var_dump(strtok(ReflectionClass::export("ShipOnlyAbstract", true), "\n"));
var_dump(strtok(ReflectionClass::export("ShipWithInterface", true), "\n"));