Split 10 email out of 50 email using coma separated via php
snippet in php

Split 10 email out of 50 email using coma separated via php

user2566

<?php  
$emails ="konopelski.ryann@yahoo.com, norene30@heidenreich.info, jessyca.carroll@hotmail.com, kelsie.stokes@yahoo.com, jeffertz@gutmann.com, jasen.ritchie@gmail.com, kbeier@streich.org, julian.marquardt@hotmail.com, casper35@welch.com, xhuels@hotmail.com, vdooley@stroman.com, wilbert.roob@hackett.com, fdoyle@kuhlman.com, tyshawn73@altenwerth.biz, shields.cory@gmail.com, yschroeder@gerhold.com, jeremy.wyman@hotmail.com, paige64@barrows.com, nader.gladys@hotmail.com, doyle.mcdermott@hirthe.com, daugherty.nicola@funk.biz, fwehner@purdy.com, legros.vidal@lesch.net, eve94@hotmail.com, ondricka.zoie@hotmail.com, rcruickshank@hotmail.com, hill.rey@hotmail.com, grace64@kub.com, devin46@sanford.com, irma92@beahan.net, rosalee12@gmail.com, nikolas.krajcik@yahoo.com, catalina.jacobi@hotmail.com, kendrick17@kilback.com, orrin39@yahoo.com, gladys.marquardt@gmail.com, bahringer.mitchel@gmail.com, yvolkman@marvin.net, pherzog@yahoo.com, kris.norval@koepp.com, breitenberg.micaela@braun.com, dejah.klocko@hermiston.com, conroy.elvera@hotmail.com, hayden.smith@yahoo.com, mable65@goyette.com, pward@shanahan.com, wrussel@hotmail.com, luisa64@heaney.com, oondricka@gmail.com, istreich@hotmail.com";
$array = explode(',', $emails);
/*// for random strings
shuffle($array); */
$count = count($array);
$res = array_slice($array, 0, 10);
print_r($res);
?>