Split 10 email dari 50 email menggunakan koma terpisah melalui php
<?php
$emails ="[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]";
$array = explode(',', $emails);
/*// for random strings
shuffle($array); */
$count = count($array);
$res = array_slice($array, 0, 10);
print_r($res);
?>
Mr. Samy