Server IP : 172.67.158.161 / Your IP : 3.12.149.221 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/php51/usr/share/pear/test/Mail/tests/ |
Upload File : |
<?php require_once '../Mail/RFC822.php'; $address_string = '"Joe Doe \(from Somewhere\)" <[email protected]>, [email protected], root'; // $address_string = "Joe Doe from Somewhere <[email protected]>, [email protected], root"; echo $address_string . "\n"; $address_array = Mail_RFC822::parseAddressList($address_string, "example.com"); if (!is_array($address_array) || count($address_array) < 1) { die("something is wrong\n"); } foreach ($address_array as $val) { echo "mailbox : " . $val->mailbox . "\n"; echo "host : " . $val->host . "\n"; echo "personal: " . $val->personal . "\n"; } print_r($address_array);