0
PHP에서 객체 메소드를 "오버라이드"할 수 있습니까? 예 :런타임에 PHP의 객체 메소드를 오버라이드
<?php
class Test {
function Foobar() {
echo "Foobar";
}
}
$t = new Test();
// Replace the Foobar-method with new code
$t->Foobar() = function() {
echo "New Code";
};
?>