array_splice i n php for loop remove code example Example: remove array values php array_splice(array, start, length, array)