get_declared_classes ( void );
它返回当前脚本中已声明类的名称的数组。
链接:https://www.learnfk.comhttps://www.learnfk.com/php/php-function-get-declared-classes.html
来源:LearnFk无涯教程网
它返回当前脚本中已声明类的名称的数组。
链接:https://www.learnfk.comhttps://www.learnfk.com/php/php-function-get-declared-classes.html
来源:LearnFk无涯教程网
<?php print_r(get_declared_classes()); ?>
它将产生以下输出-
为了便于查看,输出将缩短。
Array ( [0] => stdClass [1] => __PHP_Incomplete_Class [2] => Directory ... ... )
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
Python实战 · 从0到1搭建直播视频平台 -〔Barry〕