Share icon


Many Helpful Function are available to exact the specific set of keys of an array

$sliced-arr = array_slice($new_tags, 0, 6);

The above code slice the array form keys 0 to 6, So you have 6 entries in the New array.

You can use it according to the need.Further you can used following links to see more examples

Add new comment

Restricted HTML