array_count_values
(PHP 4 , PHP 5)
array_count_values -- оНДЯВХРЮРЭ ЙНКХВЕЯРБН БЯЕУ ГМЮВЕМХИ ЛЮЯЯХБЮ
нОХЯЮМХЕ
ЛЮЯЯХБ
array_count_values ( ЛЮЯЯХБ ХЯУНДМШИ_ЛЮЯЯХБ)
тСМЙЖХЪ array_count_values() БНГБПЮЫЮЕР ЛЮЯЯХБ,
ЙКЧВЮЛХ ЙНРНПНЦН ЪБКЪЧРЯЪ ГМЮВЕМХЪ ЛЮЯЯХБЮ ХЯУНДМШИ_ЛЮЯЯХБ,
Ю ГМЮВЕМХЪЛХ - ВЮЯРНРЮ ОНБРНПЕМХЪ ЩРХУ ГМЮВЕМХИ.
Пример 1. оПХЛЕП ХЯОНКЭГНБЮМХЪ array_count_values()
$array = array (1, "hello", 1, "world", "hello"); print_r(array_count_values ($array));
|
пЕГСКЭРЮРНЛ БШЬЕОПХБЕДЕММНИ ОПНЦПЮЛЛШ АСДЕР:
Array
(
[1] => 2
[hello] => 2
[world] => 1
) |
|
HIVE: All information for read only. Please respect copyright! |