您的位置:寻梦网首页编程乐园PHP 编程PHP5中文手册
PHP5中文手册

http_support

(PECL pecl_http:0.15.0-1.5.5)

http_support — Check built-in HTTP support

说明

int http_support ([ int $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");
}
?>