您的位置:首页 > 其它

bind实现DNS子域授权及转发2/3

2014-03-14 19:48 435 查看
/**简单工厂模式**/
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title></title>
</head>
<body>
<?php
interface IUser{
function getName();
}
class User implements IUser{
public function getName(){
return "jack";
}
}
class UserFactory{
public static function Create(){
return new User();
}
}
$u = UserFactory::Create();
echo($u->getName());
?>
</body>
</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: