I am very new to PHP and have difficulty finding this answer since $ denotes a variable in PHP. I am trying to repeat the total number of elements, for example:
echo "Your total is ${$total}";
The problem is that $ front forces it to do nothing. I tried making "$" but it prints '' around $. How to get $ to print before a variable?
source share