Problem Statement
What is cURL primarily used for in PHP?
Explanation
cURL is a PHP library used to send and receive HTTP requests. It helps in communicating with APIs, external services, and web servers programmatically.
Code Solution
SolutionRead Only
$ch = curl_init('https://api.example.com');