Hello folks,
At the top of my page, I have this code:
<?
$username="username";
$password="password";
$database="database";
?>
I'd like to use those variables in a function without stating:
global $username;
global $password;
global $database;
Sure, I could just pass those variables into the function, however, I have another function where I will need to pass in 2 dozen variables, which is not feasible. Is there another way to go about it?