Toms Homepage
  Home    Downloads    Your Account    Forums  
  Create an account
Modules
· Home
· Games
· My Gallery
· PHP Manual
· PHP-Nuke HOWTO
· Web Links
· Your Account
 
Who's Online
Welcome, Anonymous
Nickname

Password

Security Code
Security Code
Type Security Code


(Register)

Membership:
Latest: CarinStok
New Today: 59
New Yesterday: 334
Overall: 62688

People Online:
Visitors: 84
Members: 9
Total: 93

Online Now:
 PrurefeellKix
 AmandaMir
COM Fausto33V
 CalebGayl
COM MariettaI
 InezI59
 DamarisKJ
 TonjaBurt
 Affifimedymum
 
array_count_values

array_count_values

(PHP 4 , PHP 5)

array_count_values -- Counts all the values of an array

Description

array array_count_values ( array input )

array_count_values() returns an array using the values of the input array as keys and their frequency in input as values.

Example 1. array_count_values() example

<?php
$array
= array(1, "hello", 1, "world", "hello");
print_r(array_count_values($array));
?>

The above example will output:

Array
(
    [1] => 2
    [hello] => 2
    [world] => 1
)


See also count(), array_unique(), array_values(), and count_chars().

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004 by Tom Nitzschner.
Web site engine code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.092 Seconds

:: VereorLCARS phpbb2 style by Vereor :: PHP-Nuke theme by www.nukemods.com ::