Example #1
0
 /**
  * 从http请求中获得Email格式字符串
  * @param string key
  * @param bool 允许空白
  * @return null|string value
  */
 public static function getRequestEmail($p_key, $p_allowBlank = true, $p_default = null)
 {
     $_r = $p_default;
     $_v = static::getRequestString($p_key, $p_allowBlank, $p_default);
     if (isset($_v) && ($p_allowBlank || W2String::isEmail($_v))) {
         $_r = $_v;
     }
     return $_r;
 }