Shuffle array after 3rd element in foreach ? PHP

Viewed 68

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.

2 Answers
Related