system/libraries/Email.php
/**
		* Clean Extended Email Address: Joe Smith <joe@smith.com>
		*
		* @param	string
		* @return	string
		*/
Clean Extended Email Address: Joe Smith 
@param        string
@return       string
Clean Extended Email Address : Joe Smith @param string @return string
public function clean_email($email)
		{
			if ( ! is_array($email))
			{
				return preg_match('/\<(.*)\>/', $email, $match) ? $match[1] : $email;
			}
			$clean_email = array();
			foreach ($email as $addy)
			{
				$clean_email[] = preg_match('/\<(.*)\>/', $addy, $match) ? $match[1] : $addy;
			}
			return $clean_email;
		}
public function clean_email ( $ email ) { if ( ! is_array ( $ email ) ) { return preg_match ( '/\<(.*)\>/' , $ email , $ match ) ? $ match [ 1 ] : $ email ; } $ clean_email = array ( ) ; foreach ( $ email as $ addy ) { $ clean_email [ ] = preg_match ( '/\<(.*)\>/' , $ addy , $ match ) ? $ match [ 1 ] : $ addy ; } return $ clean_email ; }
Clean Extended Email Address: Joe Smith <joe@smith.com>
 @param        string
 @return       string
Clean Extended Email Address : Joe Smith <joe@smith . com > @param string @return string