The current() function used for returns the value of the first element in an array.
Syntax
current(array)
Example
$array = array("ram", "shyam", "ravi");
echo current($array);
Output
ram
Coderraj is the global online platform and circle for programmers to learn, communicate, share their knowledge and growth their careers.
Copyright ©2022 coderraj.com. All Rights Reserved.