Using Variable Substitution to Reference Another Variable in PHP and BASH Script

Not many programming languages support this kind of feature. We are not talking about substitution of the values in a string. Instead, we want to reference the variable using …