本文整理汇总了PHP中L::vd方法的典型用法代码示例。如果您正苦于以下问题:PHP L::vd方法的具体用法?PHP L::vd怎么用?PHP L::vd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类L
的用法示例。
在下文中一共展示了L::vd方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
// max
$watch->start();
$max = $collection->max(function (OA $r) {
return $r->bytes;
});
L::line("Biggest bytes:", $max, $watch->stop()->result());
// contains / groupby
$watch->start();
$agents = $collection->where(function (OA $r) {
return $r->agentScalar->contains('Ubuntu');
})->groupBy(function (OA $r) {
return $r->agent;
});
echo "\n";
foreach ($agents as $key => $items) {
L::vd(array("agent" => $key, "count" => $items->length()));
}
echo "\n";
L::line("Grouped ubuntu agents.", $watch->stop()->result());
// distinct / skip / take
$watch->start();
$skiptake = $collection->where(function (OA $r) {
return $r->agentScalar->contains('Android');
})->distinct(function (OA $r) {
return $r->agent;
})->skip(3)->take(5);
L::line("Distinct by agent, skip first X records, take next Y records", $watch->stop()->result());
echo "\n";
// iterate list
$watch->start();
$skiptake->each(function (OA $r) {