php key () function syntax
Role: Returns an array of key internal pointer points to the current name of the element. Marble bracket member
Syntax: Key (Array)
parameter:
parameter | description |
array | essential. Specifies an array to be used. |
Description: Returns an array of internal pointer currently pointing key element name. If an error occurs, the function returns FALSE.
php key () function examples
<? PHP $ people = Array ( "Simon", "genocide", "wild"); echo "The current position is the key:" Key ($ people);. ?>