©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PECL pecl_http >= 0.15.0)
http_support — Check built-in HTTP support
$feature
= 0
] )Check for features that require external libraries.
See the feature support constants table
for possible values for the feature
argument.
feature
feature to probe for
Returns integer , whether requested feature is supported,
or a bitmask with all supported features if feature
was omitted.
Example #1 A http_support() example
<?php
if (! http_support ( HTTP_SUPPORT_REQUESTS )) {
die( "Need HTTP request support!\n" );
}
?>