Professional PHP5 p25 Interface Problem
Can anyone explain why when using the code
interface Openable {
abstract function open();
abstract function close();
}
results in a
Fatal error: Access type for interface method Openable::open() must be omitted in e:\Apache\htdocs\PHP5\06 interfaces\interface.Opener.php on line 15
unless I comment out the 2 abstract functions, in which case the whole example code works perfectly.
TIA
Mark
|