- var_dump: documentation ( source)
- define: documentation ( source)
<?php
class Foo {
protected static $dbname = DBNAME;
public static function debug() {
return Foo::$dbname;
}
}
$appdata = array(
'id' => 31416,
);
define('DBNAME', 'mydb_'.$_ENV['PATH']);
var_dump(Foo::debug());