How to write the following code correctly? $ a & nbsp ;=& nbsp; "'000000', '000000', '000000', '000000', '000000 ', '000000', '000000', '000000', '000000', '000000', '000000' "; echo & nbsp; $; srand (float) & nbsp; how should I write the following code correctly?
$a = "'111','222','333','1111','2222','3333','1112','2221','33313','1114','2225','3336'";
echo $a;
srand((float) microtime() * 10000000);
$input = array($a);
$rand_keys = array_rand($input, 10);
echo $input[$rand_keys[0]].','.$input[$rand_keys[1]].','.$input[$rand_keys[2]].','.$input[$rand_keys[2]].','.$input[$rand_keys[4]].','.$input[$rand_keys[5]].','.$input[$rand_keys[6]].','.$input[$rand_keys[7]].','.$input[$rand_keys[8]].','.$input[$rand_keys[9]];
srand((float) microtime() * 10000000);
$input = array('111','222','333','1111','2222','3333','1112','2221','33313','1114','2225','3336');
$rand_keys = array_rand($input, 10);
echo $input[$rand_keys[0]].','.$input[$rand_keys[1]].','.$input[$rand_keys[2]].','.$input[$rand_keys[2]].','.$input[$rand_keys[4]].','.$input[$rand_keys[5]].','.$input[$rand_keys[6]].','.$input[$rand_keys[7]].','.$input[$rand_keys[8]].','.$input[$rand_keys[9]];
Why is the above code incorrect? is the following code correct?
What should I do if the above section is correct?
If you know the experts, please give them the code directly. thank you for sharing it with us: More