- var_dump: documentation ( source)
<?php
class MyClass {
const AWESOME = 'cool';
public static $nice = array(self::AWESOME => 'neato');
public function __construct() {
echo __CLASS__;
}
}
var_dump(MyClass::$nice);
$test = new MyClass();