Mega Code Archive
Categories
/
Php
/
Data Type
Array shuffle
"; shuffle($cards); // Use array_chunk() to divide the cards into four equal "hands" $hands = array_chunk($cards, 4); print_r($hands); ?>