Location: PHPKode > projects > EXtensible Production Suite (XPS) > xpsdev/helpers/xpm3/DOCUMENTATION/func/is_mail.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
body, pre {
	font-family: Verdana;
	font-size: 10pt;
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">

XPM3_FUNC :: <i>boolean</i> <b>is_mail</b> ( <i>string</i> address [, <i>boolean</i> with_mxhost ] )
Returns TRUE if is mail address format, FALSE if not.

<i>boolean</i> with_mxhost default value is: false

<table border="0" bgcolor="white">
// verify if "hide@address.com" is mail address format and have MX zone
echo XPM3_FUNC::is_mail('hide@address.com', true) ? 'Yes' : 'No';

<hr color="white">

[ <a style="color: blue; text-decoration: none" href="mailto:hide@address.com?subject=Comment XPM3_FUNC is_mail">Comments</a> ]

Last update: Tuesday, January 16, 2007


Return current item: EXtensible Production Suite (XPS)