I am a php novice and have two values that each render a number <?= getTrails(); ?> <?= getGlades(); ?> I need to add these two together to get a sum. How can this be done?
There’s a lot of different ways you can do it…
[php]<?php
$gt = getTrails();
$gg = getGlades();
$total = $gt + $gg;
echo $total;
?>[/php]