Just return your existing check from a function.
function _isCurl(){
return function_exists('curl_version');
}
More Related Contents:
- PHP Merging Row with same value (more than one column)
- PHP Pass variable to next page
- Having issue with matching rows in the database using PDO
- How can I properly use a PDO object for a parameterized SELECT query
- Converting a UNIX Timestamp to Formatted Date String
- How to pass variable number of arguments to a PHP function
- Paypal Access – SSL certificate: unable to get local issuer certificate
- How to list all months between two dates
- php – How to force download of a file?
- AngularJS Upload Multiple Files with FormData API
- Why use $_SERVER[‘PHP_SELF’] instead of “”
- How to call codeigniter controller function from view
- Call to undefined function __() error – phpMyAdmin
- PHP – empty $_POST and $_FILES – when uploading larger files
- MySQL diacritic insensitive search (spanish accents)
- Getting a PHP PDO connection from a mysql_connect()?
- remove duplicate from string in PHP
- How can I find unused functions in a PHP project
- Reverse array in php
- How to get user timezone using jquery?
- “Class XXX is not a valid entity or mapped super class” after moving the class in the filesystem
- How does array_diff work?
- Point in Polygon algorithm giving wrong results sometimes [closed]
- How to convert all characters to their html entity equivalent using PHP
- What’s the best way to localise a date on Laravel?
- Role Based Access Control
- GET a coupon code via URL and apply it in WooCommerce Checkout page [closed]
- Regular expression: find range except for one letter or a range
- PHP XML inserting element after (or before) another element
- PHP How to remove last part of a path