Pchp.Library.Arrays.array_splice C# (CSharp) Method

array_splice() public static method

Removes a slice of an array.

length items are removed from array starting with the offset-th one.

public static array_splice ( PhpArray array, int offset, int length = int.MaxValue ) : PhpArray
array Pchp.Core.PhpArray The array which slice to remove.
offset int The relativized offset of a first item of the slice.
length int The relativized length of the slice.
return Pchp.Core.PhpArray
        public static PhpArray array_splice(PhpArray array, int offset, int length = int.MaxValue)
        {
            // Splice would be equivalent to SpliceDc if no replacement is specified (=> no SpliceDc):
            return array_splice(array, offset, length, PhpValue.Null);
        }

Same methods

Arrays::array_splice ( PhpArray array, int offset, int length, PhpValue replacement ) : PhpArray