aggregate_methods_by_list.phpt

来自「php-4.4.7学习linux时下载的源代码」· PHPT 代码 · 共 23 行

PHPT
23
字号
--TEST--aggregating methods specified in the list--POST----GET----FILE--<?phpinclude dirname(__FILE__) . "/aggregate.lib";$obj = new simple();aggregate_methods_by_list($obj, 'helper', array('just_another_method'));print implode(',', get_class_methods($obj))."\n";$obj2 = new simple();aggregate_methods_by_list($obj2, 'helper', array('just_another_method'), true);print implode(',', get_class_methods($obj2))."\n";$obj->just_another_method();?>--EXPECT--I'm alive!simple,just_another_methodI'm alive!simple,do_this,do_thatyep, that's me

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?