public static function FILTER_SANITIZE_GENDER($value)
	{
		if(preg_match('/^\s*m/i',$value)){
			$value = 'http://schema.org/Male';
		} elseif (preg_match('/^\s*f/i',$value)) {
			$value = 'http://schema.org/Female';
		} else  {
			$value = null;
		};
		return $value;
	}
public static function FILTER_SANITIZE_GENDER($value)
	{
		if(preg_match('/^\s*m/i',$value)){
			$value = 'http://schema.org/Male';
		} elseif (preg_match('/^\s*f/i',$value)) {
			$value = 'http://schema.org/Female';
		} else  {
			$value = null;
		};
		return $value;
	}
public static function FILTER_SANITIZE_GENDER ( $ value ) { if ( preg_match ( '/^\s*m/i' , $ value ) ) { $ value = 'http://schema.org/Male' ; } elseif ( preg_match ( '/^\s*f/i' , $ value ) ) { $ value = 'http://schema.org/Female' ; } else { $ value = null ; } ; return $ value ; }
Only things M or F allowed
empty allowed
Only things M or F allowed empty allowed