While using cURL in PHP, we usually set various curl options through function curl_setopt(). I am curious to know whether order of different constant options matters or not. Do we really need to care of which constants must come before or after other constants?
Any difference?
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
or
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
No, you can set them in any order you like.