Zend - The PHP Company




Code Gallery: vbodrov


array_rm_dupes  

Type: code fragment
Added by: vbodrov
Entered: 01/04/2002
Last modified: 04/12/2001
Rating: - (fewer than 3 votes)
Views: 4125
Description: array array_rm_dupes(array array, [boolean is_sorted]) array_rm_dupes() removes duplicate values from an array. It takes input array and returns a new array without duplicate values. array_rm_dupes() sorts the input array in case if is_sorted flag is "false" (default). Two elements are considered equal if and only if (string) $elem1 === (string) $elem2 NOTE THAT UNLIKE THE STANDARD array_unique() FUNCTION KEYS ARE PRESERVED!


Express EMail Validation Routine  

Type: code fragment
Added by: vbodrov
Entered: 01/04/2002
Last modified: 08/12/2010
Rating: **** (6 votes)
Views: 11687
isValidEmail is an express email address validation routine, which checks if the given email address is _looks_ like a valid one. Also it searches DNS for MX records corresponding to the hostname extracted from the address (optional).




Search