[ create a new paste ] login | about

Link: http://codepad.org/BPVdzjpd    [ raw code | output | fork ]

nel - PHP, pasted on Sep 11:
<?php

$mails = "birgit_dieltjens@hotmail.com
charlinehottlet@hotmail.com
els_frijters@hotmail.com
khalid.mahrous@gmail.com
cindy_vh@hotmail.com
raphaelwarolin@gmail.com";

$arr = explode("\n", $mails);

$output = '';

foreach($arr as $mail) {

$output .= trim($mail).',';

}

echo count($arr);

echo $output;

?>


Output:
1
6birgit_dieltjens@hotmail.com,charlinehottlet@hotmail.com,els_frijters@hotmail.com,khalid.mahrous@gmail.com,cindy_vh@hotmail.com,raphaelwarolin@gmail.com,


Create a new paste based on this one


Comments: