Logo Search packages:      
Sourcecode: d-push version File versions  Download package

Mail_RFC822::approximateCount ( data )

Returns an approximate count of how many addresses are in the given string. This is APPROXIMATE as it only splits based on a comma which has no preceding backslash. Could be useful as large amounts of addresses will end up producing *large* structures when used with parseAddressList().

string$dataAddresses to count
int Approximate count

Definition at line 897 of file z_RFC822.php.

        return count(preg_split('/(?<!\\\\),/', $data));

Generated by  Doxygen 1.6.0   Back to index