PHP getmxrr() 함수
예시
메일 교환기 레코드(MX 레코드)의 반환 세부정보:
<?php
$domain="w3schools.com";
if(getmxrr($domain,$mx_details)){
foreach($mx_details as $key=>$value){
echo "$key =>
$value <br>";
}
}
?>
정의 및 사용
getmxrr() 함수는 지정된 인터넷 호스트 이름에 대한 MX 레코드를 반환합니다.
통사론
getmxrr(host, mxhosts, weight)
매개변수 값
Parameter | Description |
---|---|
host | Required. Specifies the host name |
mxhosts | Required. An array that specifies a list of MX records found |
weight | Optional. An array that specifies the weight information gathered |
기술적 세부 사항
반환 값: | 레코드가 있으면 TRUE, 그렇지 않으면 FALSE |
---|---|
PHP 버전: | 4.0+ |
PHP 변경 로그: | PHP 5.3: 이제 Windows 플랫폼에서 사용 가능 |
❮ PHP 네트워크 참조