示例#1
0
文件: bug107.php 项目: lihuibin/jphp
 public function parent()
 {
     parent::parent();
 }
示例#2
0
文件: parent.php 项目: tokenrove/pfff
<?php

// parent/self are kinda keywords in PHP, but PHP allow to name
// methods or functions with those keywords ...
class A
{
    function parent()
    {
        return 1;
    }
    function self()
    {
        return 1;
    }
}
$o = new A();
echo $o->parent();