$array = array(1,2,3,4,5); echo end($array);//5
php获取数组最后一个值
原文:https://www.cnblogs.com/clubs/p/10689393.html