PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $data=[ ["id"=>"1", "words"=>"words 1"], ["id"=>"2", "words"=>"words 2"], ["id"=>"3", "words"=>"words 3"], ["id"=>"4", "words"=>"words 4"], ["id"=>"5", "words"=>"words 5"], ["id"=>"6", "words"=>"words 6"], ["id"=>"7", "words"=>"words 7"], ["id"=>"8", "words"=>"words 8"], ["id"=>"9", "words"=>"words 9"], ["id"=>"10", "words"=>"words 10"] ]; shuffle($data); print_r(array_chunk($data, 3));
Show:  
Copy Clear