[eluser]blagi[/eluser]
[quote author="tkaw220" date="1309244276"]Hi Seb,
Not. Your code is fine. But I wish to assign item from array to a variable. For example,
1) Extract the amount in USD and assign it to variable called $amount_usd.
2) I can called out the $amount_usd anytime within page for other purpose. For example,
Code:
Sales in USD currency: $amount_usd
[/quote]
You can use:
$val = 'usd' ;
$amount[$val] ...
or
$val = 'usd';
$varNname = 'amount_'.$val;
$$varName = ... //$$varname is var $amount_usd
---
blagi