15 lines
301 B
PHP
15 lines
301 B
PHP
<?php
|
|
// Polyfill for some PHP 5 functions
|
|
function callMe($allable, ...$args)
|
|
{
|
|
return $allable(...$args);
|
|
}
|
|
function returnMe($res) {
|
|
return $res;
|
|
}
|
|
if (!function_exists('is_iterable')) {
|
|
function is_iterable($var) {
|
|
return is_array($var) || $var instanceof Traversable;
|
|
}
|
|
}
|