The prev() function used for moves the internal pointer and returns the first element in an array.
Syntax
prev(array)
Example
$array = array("ram", "shyam", "ravi");
echo prev($array);
Output
ram
Copyright ©2022 coderraj.com. All Rights Reserved.