ãµãã¯ã©ã¹ã§ã¡ã½ããããªã¼ãã¼ã©ã¤ããããã®ã¡ã½ãããå¼ãã§ããã¡ã½ãããã¹ã¼ãã¼ã¯ã©ã¹ã«ããã¨ããã®ã¡ã½ããã®åä½ããå¤ãã£ã¦ãã¾ãå ´åãããããã ã <?php class ClassA { function hoge() { print("hoge\n"); } function callHoge() { $this->hoge(); } } class ClassB extends ClassA { function hoge() { print("HOGE\n"); } } $hoge = new ClassB(); $hoge->hoge(); $hoge->callHoge(); ?> åºåçµæï¼ HOGE HOGEPHPã®ã¯ã©ã¹ã§èªèº«ã®ã¡ã½ãããå©ç¨ããå ´åã¯$this->method()ã¨æ¸ãã®ã ãããã®$thisã¯ãã¤ã³ã¹ã¿ã³ã¹ã®èªèº«ãæãããã ãã¡ã½ããåã ããè¨è¿°ã
{{#tags}}- {{label}}
{{/tags}}