Searched refs:is_countable (Results 1 – 7 of 7) sorted by relevance
2 Test is_countable() function7 var_dump(is_countable([1, 2, 3]));8 var_dump(is_countable((array) 1));9 var_dump(is_countable((object) ['foo', 'bar', 'baz']));10 var_dump(is_countable());14 if (is_countable($foo)) {19 if (!is_countable($bar)) {28 Warning: is_countable() expects exactly 1 parameter, 0 given in %s on line %d
2 Test is_countable() function7 var_dump(is_countable(new class extends ArrayIterator {}));8 var_dump(is_countable((array) new stdClass()));9 var_dump(is_countable(new class implements Countable {
40 PHP_FUNCTION(is_countable);
398 PHP_FUNCTION(is_countable) in PHP_FUNCTION() argument
3125 PHP_FE(is_countable, arginfo_is_countable)
472 . Added is_countable() function, to check whether a value may be passed to
1690 . Added is_countable() function. (Gabriel Caruso)
Completed in 39 milliseconds