1syan 的个人博客 / 0 / 0 / 创建于 2年前
比如现在有个这样的数组
$users = [ '张三' => [ '文章' => [ 'zhang', 'san' ] ], '李四' => [ '文章' => [ 'li', 'si' ] ], ]
然后循环输出所有’文章’
foreach($users as $user){ foreach($user as $note){ $notes[] = $note } }
请问各位这种情况怎么使用yield呢
本作品采用《CC 协议》,转载必须注明作者和本文链接
我要举报该,理由是:
推荐文章: