Arquivos
hhvm/hphp/test/zend/bad/ext-standard-array/array_count_values.php
T
Paul Tarjan 991fef8842 import zend standard tests
Lots of the win32 ones work for creating but not removing.
2013-04-25 11:34:20 -07:00

21 linhas
553 B
PHP

<?php
$arrays = array (
array (),
array (0),
array (1),
array (-1),
array (0, 0),
array (0, 1),
array (1, 1),
array (1, "hello", 1, "world", "hello"),
array ("hello", "world", "hello"),
array ("", "world", "", "hello", "world", "hello", "hello", "world", "hello"),
array (0, array (1, "hello", 1, "world", "hello")),
array (1, array (1, "hello", 1, "world", "hello"), array (1, "hello", 1, "world", "hello"), array (1, "hello", 1, "world", "hello")),
);
foreach ($arrays as $item) {
var_dump (@array_count_values ($item));
echo "\n";
}
?>