I have an object that has a lot of accents in it and I'm trying to remove it but I couldn't figure out on how to do it. I need to remove the accents so I could save the values into my DB. the code bellow is how I get the values from another companies API and here is how the object looks like
.
I selected the part that has an accent in it
session_start();
$email = "EMAIL";
$password = "PASSWORD";
$url = "{$email}:{$password}@www.WEBSITE.eu/generator/catalog/xml";
$xml = simplexml_load_string(file_get_contents($url));;
$xml->preserveWhiteSpace = false;
$xml->formatOutput = true;
$xml->saveXML();
//echo '<pre>'. print_r($xml->PRODUCT, true). '</pre>';
// var_dump($xml->PRODUCT);
$lenght = count($xml);
for ($x = 0; $x <= $lenght; $x++) {
$product = SaveProduct($xml->PRODUCT[$x]);
}