【php开源代码栏目提醒】:网学会员php开源代码为您提供code4.7.php参考,解决您在code4.7.php学习中工作中的难题,参考学习。
<?php
interface IShowNameable {
function myname();
}
interface IOtherNameable {
function othername();
}
class showname implements IShowNameable ,IOtherNameable {
function myname() {
echo ":唐晓阳";
}
function othername() {
echo ":裴亚敏";
}
}
$show=new showname();
$show->myname();
echo "<br>";
$show->othername();
?>