I'm aiming for the best and simplest way to access "global" variables set in the config file for my website. So I can use them anywhere, even inside functions

It's for file versioning, and I use htaccess to rewrite urls (trim out version part)

Right now, I'm at this:

```
// config.php:

class VERS {

  static $css = '_214';
  static $js = '_167';
  static $image = '_56';
  static $other = '_19';

}

// subpage.php:

require 'settings/config.php';
echo '<link type="text/css" rel="stylesheet" href="style'.VERS::$css.'.css" />';

```

Is this an ok solution? Are there downsides and/or better ways?

I want to avoid setting multiple DEFINE's, and I aim for a short version var call (like *VERS::$css*)

*EDIT: This is not about alternatives to the filename method itself (like filename?queries etc.)*