Java Array Get Index Of Object In Php