Input
Output
<?php // Interface Roll interface Roll { const rollno = 10; } // Interface Name interface Name { const name = "Sundarrajan"; public function showdata(); } // Student implements both interfaces class Student implements Roll, Name { public function showdata() { echo self::rollno . " " . self::name . "\n"; } } // Main execution $s1 = new Student(); $s1->showdata(); ?>