时间:2021-07-01 10:21:17 帮助过:5人阅读
/**
* Created by PhpStorm.
* User: yanfeng
* Date: 2016/3/31
* Time: 13:28
*/functionoutput()
{echo"function:
";
echo__CLASS__ . "
";
echo__METHOD__ . "
";
echo__FUNCTION__ . "
";
}
classtest
{staticfunctionoutput()
{echo"class:
";
echo__CLASS__ . "
";
echo__METHOD__ . "
";
echo__FUNCTION__ . "
";
output();
}
}
test::output();
输出结果:
class:
test
test::output
output
function:
output
output
').addClass('pre-numbering').hide();
$(this).addClass('has-numbering').parent().append($numbering);
for (i = 1; i <= lines; i++) {
$numbering.append($('').text(i));
};
$numbering.fadeIn(1700);
});
});
以上就介绍了PHP中获取当前类名、方法名、函数名魔法常量(第一次用markdown),包括了markdown方面的内容,希望对PHP教程有兴趣的朋友有所帮助。