curl_version 


curl apg

The cURL version.



<?php

array|false curl_version();
  
?>

  


This function has no parameters.



  1 EXERCISE   

<?php

echo 'PHP version: ' phpversion() . '<br><br>';

$curlver curl_version();

echo 
'<pre>';
print_r ($curlver);
echo 
'</pre>';
  
?>

 RESULT   

PHP version: 8.2.22

Array
(
    [version_number] => 526848
    [age] => 11
    [features] => 1370440605
    [ssl_version_number] => 0
    [version] => 8.10.0
    [host] => x86_64-redhat-linux-gnu
    [ssl_version] => OpenSSL/1.1.1w
    [libz_version] => 1.2.7
    [protocols] => Array
        (
            [0] => dict
            [1] => file
            [2] => ftp
            [3] => ftps
            [4] => gopher
            [5] => gophers
            [6] => http
            [7] => https
            [8] => imap
            [9] => imaps
            [10] => mqtt
            [11] => pop3
            [12] => pop3s
            [13] => rtsp
            [14] => scp
            [15] => sftp
            [16] => smb
            [17] => smbs
            [18] => smtp
            [19] => smtps
            [20] => telnet
            [21] => tftp
        )

    [ares] => 
    [ares_num] => 0
    [libidn] => 
    [iconv_ver_num] => 0
    [libssh_version] => libssh2/1.8.0
    [brotli_ver_num] => 16777225
    [brotli_version] => 1.0.9
)