Php For Loop Array Example Java