WordPress at Your Fingertips
function is not described

SimplePie_Misc::get_curl_version() public WP 1.0

{} It's a method of the class: SimplePie_Misc{}

No Hooks.

Return

null. Nothing.

Usage

$result = SimplePie_Misc::get_curl_version();

Code of SimplePie_Misc::get_curl_version() WP 5.8.2

public static function get_curl_version()
{
	if (is_array($curl = curl_version()))
	{
		$curl = $curl['version'];
	}
	elseif (substr($curl, 0, 5) === 'curl/')
	{
		$curl = substr($curl, 5, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 5));
	}
	elseif (substr($curl, 0, 8) === 'libcurl/')
	{
		$curl = substr($curl, 8, strcspn($curl, "\x09\x0A\x0B\x0C\x0D", 8));
	}
	else
	{
		$curl = 0;
	}
	return $curl;
}