Best unofficial Apache Server developers community |
|
Hello, I have a mysql query that returns 20 results from a table of 110,000,000. I would like to shuffle these before echoing them out using php. Is it faster to use
or shuffle the array in php somehow?
posted via StackOverflow
|
![]()  
|
Depending on the amount of results you're pulling back from MySQL, If you're only returning 20 like you say, the performance differences will be negligible. You could always test it out and see which is better for you, to shuffle an array in PHP you would use |