curl_strerror

PHP 5 >= 5.5.0, PHP 7, PHP 8
curl_strerror - Return string describing the given error code
Manual
Code Examples

Example #1 curl_errno example

Result: cURL error (1): Unsupported protocol
PHP Version: