9
I’m doing an integration with Mailchimp, and I came across this code:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $submit_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, urlencode($payload));
I wonder what Curl is, curl_setopt
etc., and what are they for (in a general concept, and not just in the presented code).