The array_walk() function used for read one by one keys and values of an array element in a user defined function.
echo "The key $key has the value $value<br>";
The key a has the value ram
The key b has the value shyam
The key c has the value ravi