fork download
  1. <?php
  2.  
  3. $val = '受付窓口<em@unisto.co.jp>';
  4. $adds = explode(',',$val);
  5. if(count($adds)>0)
  6. {
  7. $val = "";
  8. foreach($adds as $address)
  9. {
  10. if($val)
  11. $val .= ',';
  12. if (preg_match("<(.+@.+\..+)>",trim($address),$add))
  13. {
  14. $address = trim(preg_replace($add[0],"",$address),'<>');
  15. $address = trim($this->str2base64($address,$key));
  16. echo $address;
  17. $val .= $address.$add[0];
  18. }
  19. else
  20. $val .= $address;
  21. }
  22. }
  23. echo $val;
Runtime error #stdin #stdout 0s 82944KB
stdin
Standard input is empty
stdout
Standard output is empty