I have this:
echo 'm=>'.$fin_type_2; // echoes 'test text';
Now, if I do the following, I get nothing, whereas I was expecting the same result as above. What I am doing wrong here ?
$z=2;
echo 'm=>'.$fin_type_{$z}; // echoes nothing but m=>
Help appreciated. Many thanks.
i would use something like this:
${'fin_type_'.$z}
(besides this page of php documentation helped myself sometimes)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With