Simple class, solely for setting "globals" 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 '&lt;link type="text/css" rel="stylesheet" href="style'.VERS::$css.'.css" /&gt;';


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.)
If these are constants, use const, not static:

class VERS {
    const css = '_214';
    const js = '_167';
    const image = '_56';
    const other = '_19';
}


and then

echo .....VERS::css....


As to whether this is a good idea in general, it would be helpful to show a bigger picture: what the rest of config looks like? how it's used? etc.