Rewind the internal iterator position and returns this element.

/**
 * Rewind the internal iterator position and returns this element.
 */
public function prev()

Examples

$arrays = Arrays::create([0 => 'blue', 1 => 'red', 2 => 'green', 3 => 'red'])->prev()

print_r($arrays);

The above example will output:

false

Getting Started

Methods