2079 10

BIT301 ยท 2079 ยท 5 marks

Write a PHP program to extract subset of a string array using array_slice() function.

Write a PHP program to extract subset of a string array using array_slice() function. [5]

Web Technology IIChapter 4: Arrays and Data StructuresArray slicing with array_slice function

arrayslice() is a built-in PHP function that extracts a portion (subset) of an array and returns it as a new array. Syntax: Parameter Description ------ array The input array start Starting index (0-based) length Number of elements to extract (optional) preservekeys Whether to preserve original k...