Trying to change just TWO values of array from string to integer (in order to do math on them)
Tried:
echo (float)$final_data[0][0][4] - (float)$final_data[0][0][2];
echo "<br>";
echo (float)($final_data[0][0][4] - $final_data[0][0][2])/$final_data[0][0][2]*100;
Does not work. It still outputs '2' which is the string talking.
Is there a way to do this? I know how to transform ALL of the array into integers but is there an easy way to just do it per element like I'm doing?