Q:

Shuffle array after 3rd element in foreach ? PHP

I need shuffle $items after 3rd element. 
Result should be :
1 2 3 6 7 9 8 5 4
My is Code:
<?php
    $items= range(1, 10); shuffle($items); foreach($items as $v): 
?>
   ...
<?php 
  endforeach; 
?> 

Cant find any solution in stackoverflow or google.
How can I do this ? 
Thanks in advance.

A:

Split the array in two parts and merge them after the suffle. 
Edit; I now use array_splice to split the array at 3 and shuffle the remaining then merge them.
$items = range(1,10);
$items1= array_splice($items, 0,3);
shuffle($items);

$result = array_merge($items1, $items);
Var_dump($result);

https://3v4l.org/iUQ1m

