X7ROOT File Manager
Current Path:
/opt/alt/php51/usr/share/pear/test/Mail/tests
opt
/
alt
/
php51
/
usr
/
share
/
pear
/
test
/
Mail
/
tests
/
ðŸ“
..
📄
13659.phpt
(651 B)
📄
9137.phpt
(1001 B)
📄
9137_2.phpt
(1.2 KB)
📄
rfc822.phpt
(2.78 KB)
📄
smtp_error.phpt
(720 B)
📄
validateQuotedString.php
(640 B)
Editing: validateQuotedString.php
<?php require_once '../Mail/RFC822.php'; $address_string = '"Joe Doe \(from Somewhere\)" <doe@example.com>, postmaster@example.com, root'; // $address_string = "Joe Doe from Somewhere <doe@example.com>, postmaster@example.com, 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);
Upload File
Create Folder