php 中 interface的作用 2010-05 php interface interface IA{ public function foo();}class A implements IA{ public function foo(){ echo "A.foo "; } public function bar(){ echo "A.bar "; }}class