Tag Archives: check curl version in php

How to check curl version in php

Using curl_version we want to see curl version any many other features of curl in php.

<?php
        
// Get curl version array
$version = curl_version();

echo '<pre>';
print_r($version);
echo'</pre>';



echo 'Output is ====>'.'<br/>';
?>

Array
(
    [version_number] => 467712
    [age] => 3
    [features] => 50877
    [ssl_version_number] => 0
    [version] => 7.35.0
    [host] => x86_64-pc-linux-gnu
    [ssl_version] => OpenSSL/1.0.1f
    [libz_version] => 1.2.8
    [protocols] => Array
        (
            [0] => dict
            [1] => file
            [2] => ftp
            [3] => ftps
            [4] => gopher
            [5] => http
            [6] => https
            [7] => imap
            [8] => imaps
            [9] => ldap
            [10] => ldaps
            [11] => pop3
            [12] => pop3s
            [13] => rtmp
            [14] => rtsp
            [15] => smtp
            [16] => smtps
            [17] => telnet
            [18] => tftp
        )

)

How to check curl installed or not Click Here