--TEST-- array_rand() tests --FILE-- --EXPECTF-- Warning: array_rand() expects at least 1 parameter, 0 given in %s on line %d NULL NULL Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array in %s on line %d NULL Warning: array_rand() expects parameter 1 to be array, integer given in %s on line %d NULL Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array in %s on line %d NULL Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array in %s on line %d NULL Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array in %s on line %d NULL array(3) { [0]=> int(%d) [1]=> int(%d) [2]=> int(%d) } array(2) { [0]=> int(%d) [1]=> int(%d) } Done