Hi there,
I have a function that calls another function and then is supposed to return a value. This isn't working properly and I must be missing something. Here is a short example of what I am doing....
The result that I am getting is that the output is:
echo "<tr><td>$month,$day</td>";
echo "</tr>";
and it is leaving out the addition that the new_function is supposed to be adding, which is:
"<td>$a + $b = 9</td>";
Any help would be appreciated.
$day=10;
$month=5;
function my_test($day,$month){
$cal .= "<tr><td>$month,$day</td>";
$a = 3;
$b = 6;
new_function($a,$b);
$cal .= "</tr>";
echo $cal;
}
function new_function($a,$b){
$cal .= "<td>$a + $b = 9</td>";
return $cal;
}