Array Slicing in PHP
Given an array:
<?php
$arr = [1, 2, 3, 4, 5];
?>
Get the following slice from this array without changing the array itself:
<?php
[2, 3, 4]
?>
Given an array:
<?php
$arr = [1, 2, 3, 4, 5];
?>
Get the following slice from this array without changing the array itself:
<?php
[2, 3, 4]
?>