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:
$array1 = array('1','2','3','4','5','6','7','8','9');
$random = rand(0,sizeof($array1)-1);
$getfromarray = $array1($random);
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?
Please help and thanks in advance