I'm creating an Administrative Panel. For the Administrative Panel, I'm going to be using the same variables in multiple files. Since I will be releasing this Admin Panel, I want to make it user friendly. How can I write variables in brackets or something else so the developer can easily see what I did.
Example:
Instead of
PHP Code:
echo "Hello $username";
I would like to do this:
PHP Code:
echo "Hello {username}";
I believe this will be better and more organized, expecially because the configuration file will be large. I don't want the server variables and the client variables being confused.
The variables that I want to have the "{ }" should be declared in a global file. Something like
PHP Code:
$this->setParams("username", $_CONFIG['users']['name'])
Thank you in advance.