Jump to content

Clarification on creating an interface vs using a predefined interface


ifubad

Recommended Posts

The following interface, because it starts with "interface",  is that considered as a programmer defined interface, and not PHP's predefined interface? Book I am reading is getting me confused. Thank in advance

 

<?php
interface Iterator{
    public function current();
    public function key();
    public function next();
    public function rewind();
    public function valid();
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.