PHP pos() Function
Complete PHP Array Reference
Definition and Usage
The pos() function returns the value of the current element in an array.
This function is an alias of the current() function.
Syntax
Parameter |
Description |
array |
Required. Specifies the array to use |
Tips and Notes
Note: This function returns FALSE on empty elements or elements with
no value.
Tip: This function does not move the arrays internal pointer. To do
this, use the next() and prev() functions.
Example 1
<?php
$people = array("Peter", "Joe", "Glenn", "Cleveland");
echo pos($people) . "<br />";
?>
|
The output of the code above will be:
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!
|
|