Im stuck at this part of my code. So I am trying to get the 30% of a specific value but I am not getting the right output. please see value below.
foreach($salary->getValues() as $key => $value) {
echo 'salary: '.$value['salary'];
echo 'gross salary: '.$value['salary'] * .30;
}
lets assume that the salary array that we are getting is 40,000 (I am already getting this in my code) now multiply it .30 the answer must be 12,000. Therefore
Expected Output:
salary: 40,000 gross salary: 12,000
What is happening
salary: 40,000 gross salary: 12
Help please