Move 2 records from array to array randomly?
I'm trying to figure out how to get 2 or more records moved from one array to another randomly?
This is what I have so far:
As above I can get one number from the array above and remove it from the array, but not sure how to get multiple from the array and how to insert it into a new array?
$array1 = array('1','2','3','4','5','6','7','8','9');
$random = rand(0,sizeof($array1)-1);
$getfromarray = $array1($random);
Please help and thanks in advance :-)