[Solved] How to calculate total of two values in PHP? [closed]


Actually you are doing something really strange, and for you it is better to learn some programming concepts and syntax of PHP language.

As I understand your idea the correct code will be

<?php
$addition = $stats->getLastMonthGirl($userid) + stats->getLastMonthMale($userid);
echo "Total:".$addition.""; 
?>

solved How to calculate total of two values in PHP? [closed]