您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

大家帮忙看一下这段简单的代码哪里有问题

2024/3/16 9:01:27发布23次查看
private function getuserinfo(callable $human) { try { $users = (new $human)->getuser()['users']; $underageusers = [foreach ($users as $user) if ($user->age $usernames, 'surname' => $ages]; } catch(exception $e) { error_log($e); } }
回复讨论(解决方案) callable 是什么?给出定义!
callable 是一个提示占位符.
说明参数是可以调用的资源体 
这个代码真心时尚啊,一堆php 5.5的特性。
$underageusers是一个数组,什么时候mb_convert_encoding可以接受一个数组作为参数了
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product