Complete PHP Array Reference
The key() function returns the element key from the current internal pointer position.
This function returns FALSE on error.
| Parameter | Description |
|---|---|
| array | Required. Specifies the array to use |
The output of the code above will be:
Complete PHP Array Reference
Your message has been sent to W3Schools.