Wenn von einer Klasse nicht abgleitet sondern diese includiert wurde, z.B. so
$root = filter_input(INPUT_SERVER, 'DOCUMENT_ROOT'); require_once($root . '/includes/Localisation.php');
Und in Localisation so etwas steht:
class Localisation { const SNA = 'FU'; var $foo = 'bar'; }
Kann in einer anderem File so darauf
// Variable $this->localisation = new Localisation(); echo $this->localisation->foo; // Konstante echo Localisation::SNA;
zugegriffen werden: