$arr = array(‘name’=>’Kiran’,’age’=>’24’,’profession’=>’PHP Developer’);
echo $profession = end($arr);
OUTPUT : PHP Developer
$arr = array(‘name’=>’Kiran’,’age’=>’24’,’profession’=>’PHP Developer’);
echo $profession = end($arr);
OUTPUT : PHP Developer