| Previous | Home | Next |
array_each()
The each() function returns the current element key and value, and moves the internal pointer forward.
Syntax:each(array)
In above syntax, "array" specifies the array to use.
Example:
<?php
$vehicle = array("Car", "Scooter", "Motorcycle", "Truck");
print_r (each($vehicle));
?>
Output:
| Previous | Home | Next |