I'm very new to PHP and having a hard time finding this answer as $ denotes a variable in PHP. I'm trying to echo a total for items, such as:
echo "Your total is ${$total}";
The problems is the $ in front causes it to do nothing. I tried doing '$' but it prints the ' ' around the $. How do I get the $ to print in front of the variable?