So, I change the code to:
function puto(){
$url = 'https://api.cloudflare.com/client/v4/zones/fffcc847cd955d4d7e8afac10ee59b84/dns_records/638bd4ca58aea88a232b0658ada71da3';
$dato = array('type' => 'A','name' => 'remote.dattasolutions.com.mx','content' => gethostbyname('remote.dattasolutions.com.mx'));
$request = json_encode($dato);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
curl_setopt($ch, CURLOPT_POSTFIELDS,$request);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','X-Auth-Email: xxxx@gmail.com','X-Auth-Key: 7ffffgghhgga77e428df2d834ea3f1147e346572ad'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
$response = curl_exec($ch);
if (curl_errno($ch)) {
print curl_error($ch);
exit();
} else{
echo 'yes';
echo '<br>';
curl_close($ch);
echo $response;
}
}