Php Get Index Of Last Element In Css 1