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 wanted to know what curl, curl_setopt
etc., and what they are for (in a general concept, not just the code presented).