- array_reverse: documentation ( source)
- var_export: documentation ( source)
- range: documentation ( source)
- is_callable: documentation ( source)
<?php
// Everything you enter here will be executed by our servers. Try it!
function iterator_compose()
{
foreach (array_reverse(func_get_args()) as $it) {
if (is_callable($it)) {
$prev = $it;
}
}
}
function chunk(\Traversable $it, $chunkSize)
{
$chunk = [];
}
foreach (chunk(range(0, 128), 32) as $c) {
var_export($c);
}