PHP array_count_values() Function
Complete PHP Array Reference
Definition and Usage
The array_count_values() function returns an array, where the keys are the original array's values,
and the values is the number of occurrences.
Syntax
array_count_values(array)
|
Parameter |
Description |
array |
Required. Specifying an arrary. |
Example
<?php
$a=array("Cat","Dog","Horse","Dog");
print_r(array_count_values($a));
?>
|
The output of the code above will be:
Array ( [Cat] => 1 [Dog] => 2 [Horse] => 1 )
|
Complete PHP Array Reference
Learn how your website performs under various load conditions
|
|
WAPT
is a load, stress and performance testing tool for websites and web-based applications.
In contrast to "800-pound gorilla" load testing tools, it is designed to minimize the learning
curve and give you an ability to create a heavy load from a regular workstation.
WAPT is able to generate up to 3000 simultaneously acting virtual users using standard hardware configuration.
Virtual users in each profile are fully customizable. Basic and NTLM authentication methods are supported.
Graphs and reports are shown in real-time at different levels of detail, thus helping to manage the testing process.
Download the free 30-day trial!
|
|