fork(1) download
  1. <?php
  2.  
  3. interface UserInterface {
  4. function getName();
  5. }
  6.  
  7. class UserClass implements UserInterface {
  8. };
  9.  
  10.  
  11. function foo (MyInterface $I) {
  12. }
  13.  
  14. $i = new MyClass;
  15.  
  16. foo($i);
Runtime error #stdin #stdout #stderr 0.01s 82880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Fatal error:  Class UserClass contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (UserInterface::getName) in /home/nShwKN/prog.php on line 7