curl_version — cURL 버전 정보 가져 오기 정보
PHP curl_version — cURL 버전 정보 가져 오기본문
curl_version — cURL 버전 정보 가져 오기
설명 ¶
array curl_version ([ int $age = CURLVERSION_NOW ] )
cURL 버전에 대한 정보를 반환합니다.
인수 ¶
age
반환값 ¶
다음 요소로 연관 배열을 반환합니다.
Example #1 curl_version() example
<?php
// Get curl version array
$version = curl_version();
// These are the bitfields that can be used
// to check for features in the curl build
$bitfields = Array(
'CURL_VERSION_IPV6',
'CURL_VERSION_KERBEROS4',
'CURL_VERSION_SSL',
'CURL_VERSION_LIBZ'
);
foreach($bitfields as $feature)
{
echo $feature . ($version['features'] & constant($feature) ? ' matches' : ' does not match');
echo PHP_EOL;
}
?>
추천
2
2
댓글 0개