how do I go on about changing query string like for example i have this curl request for an api
www.apiurl.com/page=1&content=3
i need to request like 60 pages so which is the simple way instead of repeating the code over and over?
like request this in parallel and return the data of all
www.apiurl.com/page=2&content=3
www.apiurl.com/page=3&content=6
www.apiurl.com/page=4&content=9
code here
$strings = array('page'=>'1',
'&content'=>'3');
$postdata = http_build_query($strings);
$data = curl_init();
curl_setopt ($data, CURLOPT_URL, "www.apiurl.com/");
curl_setopt($data, CURLOPT_RETURNTRANSFER, true);
curl_setopt ($data, CURLOPT_POSTFIELDS, $postdata);
$content = curl_exec($data);
curl_close($data);
print_r($content);