- var_dump: documentation ( source)
- define: documentation ( source)
<?php
class Test {
const MY_CONSTANT = 'FUCKER';
public function __construct() {
//self::MY_CONSTANT = 'why';
define('MY_CONSTANT', '123');
var_dump(self::MY_CONSTANT);
}
}
$t = new Test();