How to Turn a PHP Session Variable into a Variable?

Phil M

New member
How do I turn THIS ----> ' . $currencies->format($_SESSION['cart']->show_total()) . ' Into This

$totalamount = $_SESSION['cart'];

It's not giving me a total which means the first code is actually converting the cart variable into a total. I need it to be a plain variable. How would I write it???
The answer is $totalamount = $_SESSION['cart']->show_total();
 
Back
Top