<?php interface IHuman { function GetName(); } class ManClass implements IHuman { public function GetName() { return "I'm man."."<br>"; } } class WomanClass implements IHuman { public function GetName() { return "I'm Woman."."<br>"; } }
?? ?? ??????? ?? ???? ??? ?? ????? ???? new ?????, new ???? ?? ????? ???? ? ?????. ??? ?? ???? new ???? ??? ?? ???? ? ?? ??? ??? ? ????. ?? ??, ??? ??? ??? ????? ??? ??? ?????. ??? ?? ??? ????? ???? ? ?? ??, ??? ?? ?? ????? ?????, ??? ??? ???? ?? ?? ??? ??? ???? ? ?? ????. . ??? ?? ??? ??? ???? ?? ? ? ??? ?? ???? ?? ??? ??? ?? "????"???.
? ???? ?? ???? ???? ????? ?? ???? ????? ????????. ?????? ???? ?? ??????! ? ???? ?? ???? ?? ?????? ?????. ??? ???? ???? ??? ????. ??? ??? ?? ??? ?? ??? ???? ????! ??? ?? ?? ??? ???? ????? ????. ???: admin@php.cn
?? ??

26 Mar 2025
? ??? ?? ???, ?? ?? ? ??? ????? ??? ??? ? PHP? ?? ?, ??, ??? ??? ?? ??? ??? ?? ?????.

29 Jul 2016
headfirst ??? ??: headfirst ??? ?? php ??? ?? Facade ?? ??: ?? ??: Facade ??(Facade Pattern): ??????? ?? ??? ??? ?? ??? ?? ????? ??, ??????? ??? ?????? ?????. ??? ?????, ??? ??? ? ?? ???? ? ?? ??? ? ??? ?? ?? ?? ?????? ?????. Appearance ??? ?? ?? ??? Facade ????? ???. ?? ??: ?? ??? ?????? ? ?? ??? ???? ?? ??? ???? ? ??? ???? ??? ? ??? ?? ????. ?? ???: ??? ?????.

29 Jul 2016
?? ???:?? ??? php ??? ?? ?? ?? ??: ??? ?? ?? ??? ?????: <?php /** * ?? ??? ??* * ?? ??? ?? ?????? ????, ?????? ???? ?? ????? ????? ??, ?????? ?????. ???? ?? ???? ?????. */ /* class DBFactory { public static function create($type) { swtich($type) { case "Mysql": return new MysqlDB() break;

29 Jul 2016
?? ??? ??? ??: ?? ??? ??? ?? php ??? ?? ?? ?? ??: ??? ?? ?? ??? ?????: <?php /** * ?? ?? ??* * @create_date: 2010-01-04 */ class PlayList { var $ _songs = array(); var $_object = null; function PlayList($type) { $object = $type."PlayListDelegation";


??? ??

??? ?? ????? PHP ?????
??? ?? ????? PHP ?????

50?? ??? ??? PHP ???? ??
??? PHP ????, ??? ????? ??? ???? ?????

??? ???? ?? ?? PHP ?????
??? ???? ?? ?? PHP ?????
