I used a cURL
, to make an api , in which I would get a specific date.
The problem is that the content returned is in English, for example: September 18, 2018
.
How could I format this to "en"?
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$data = curl_exec($ch);
$espdata = GetStr($data,'<exemplo>','</exemplo>');
echo $espdata; //September 18, 2018