<?php
class A
{
const NAME = 'A';
public static function test() {
$args = func_get_args();
echo "<br>";
echo static::NAME, " ".join(',', $args)." <br> ";
}
}
class B extends A
{
const NAME = 'B';
public static function test() {
echo self::NAME, " ";
forward_static_call(array('A', 'test'), 'more', 'args');
forward_static_call( 'test', 'other', 'args');
}
}
B::test('foo');
function test() {
$args = func_get_args();
echo "C ".join(',', $args)." ";
}
?>
还未理解到php方法()
最新推荐文章于 2025-02-02 22:31:16 发布
5406

被折叠的 条评论
为什么被折叠?



