Php Find Position In Array Java