ok im still a n00b at php and ive got a question ive got the following code:<BR><BR>
<?php
function get_recipients($file) {
$fp = fopen($file, "rb");
$contents = fread($fp, filesize($file));
preg_match("/To: (.*)\n/", $contents ,$to);
return(explode(", ", $to[1]));
}
$to = get_recipients("mail.eml");
print_r($to);
?>
which out puts:
Array ( [0] => robert@fcn.dnsart.com ) <BR>
how do i get rid of that array crap at the begining?