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

Solutions on MaxInterview for split 10 email out of 50 email using coma separated via php by the best coders in the world

showing results for - "split 10 email out of 50 email using coma separated via php"
Olivia
25 Sep 2016
1<?php  
2$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";
3$array = explode(',', $emails);
4/*// for random strings
5shuffle($array); */
6$count = count($array);
7$res = array_slice($array, 0, 10);
8print_r($res);
9?>