$valores = stripslashes($_POST['data']);$decoded = json_decode($valores,true);$id = $decoded[0]['idcorreo'];