i have added a test code.please check it.
$products_text_box['text_box'] = "test";
$test = "demo"
when i print this echo $products_text_box[‘text_box’]; then , it will displaplay the output test.
but i want to display output demo which is store in $test variable to get it i have to convert test into $test.
how can i do this?
One way is with eval, but be warned:
The eval() language construct is very dangerous because it allows execution of arbitrary PHP code. Its use thus is discouraged. If you have carefully verified that there is no other option than to use this construct, pay special attention not to pass any user provided data into it without properly validating it beforehand.
Another example from construction of variable name:
example