Dapatkan 10 nilai dalam array php
$arr = [1,2,3,4,5];
$newArr = array_splice($arr, 0, 3);
echo '<pre>';
print_r($arr);
print_r($newArr);
Tyagi420
$arr = [1,2,3,4,5];
$newArr = array_splice($arr, 0, 3);
echo '<pre>';
print_r($arr);
print_r($newArr);