Python Array Get Last Element Of Array Php Use For Loop