I have an array. I want to check its elements' values and change them if they are equal to 0 or 0.00
Here's what i tried and failed :
foreach($returnArray as $arrayElement){
if($arrayElement === 0 || $arrayElement === 0.00){
$arrayElement = null;
}
}
I wanna change 0 or 0.00 values into null value. $returnArray is my main array, it has some int and double values.