Easy Tutorial
❮ Php Oop Func String Crc32 ❯

PHP next() Function

Complete PHP Array Reference Manual

Example

Outputs the value of the current element and the next element in the array:


Definition and Usage

The next() function advances the internal pointer to the next element in the array and outputs it.

Related methods:


Syntax

Parameter Description
array Required. Specifies the array to use.

Technical Details

Return Value: Returns the value of the next element in the array if successful, or FALSE if there are no more elements.
PHP Version: 4+
--- ---

More Examples

Example 1

Demonstration of all related methods:


❮ Php Oop Func String Crc32 ❯