View Mdoc internals of Class3

Branch constant

Array ( [CLAS_ERRMSG] => Array ( [source] => Array ( [comment] => /** * Long string constant. * * Individual constant comment provides long description for every constant, * while in group, constant must be declared in single line each. * * @experimental * @type string */ [code] => define("CLAS_ERRMSG", "A classical error message " . "which stands onto three " . "lines to be defined ; and a semi-colon."); [value] => "A classical error message " . "which stands onto three " . "lines to be defined ; and a semi-colon." [line] => 34 ) [description] => Array ( [short] => Long string constant. [long] => Individual constant comment provides long description for every constant, while in group, constant must be declared in single line each. ) [info] => Array ( [experimental] => yes [type] => string ) ) [CLAS_CON] => Array ( [source] => Array ( [comment] => /** * Constant declared with single documenting. * * @warning a warning for parsing test */ [code] => define("CLAS_CON", 1024); [value] => 1024 [line] => 43 ) [description] => Array ( [short] => Constant declared with single documenting. ) [info] => Array ( [warning] => a warning for parsing test ) ) [STRANGE] => Array ( [source] => Array ( [comment] => /** * A nasty constant declaration. * * Placing an inline comment in a strange place. */ [code] => define ( "STRANGE", true ); [value] => true [line] => 61 ) [description] => Array ( [short] => A nasty constant declaration. [long] => Placing an inline comment in a strange place. ) ) [Class3::START] => Array ( [source] => Array ( [comment] => /** * A "member" constant for parsing tests. * * As of PHP5, constant can be declared in a class, with the new "const" * statement and is accessed with class member syntax even within the class * itself. Their scope is global assuming to use class member syntax. * * [code] * // A class constant is accessed with class member syntax * class Test { * * const HELLO = "Hello world!"; * * function __construct() { * echo Test::HELLO; // even within the class * } * } * // Accessing the class constant in global scope * echo Test::HELLO; */ [code] => const START = 0; [value] => 0 [line] => 93 ) [description] => Array ( [short] => A "member" constant for parsing tests. [long] => As of PHP5, constant can be declared in a class, with the new "const" statement and is accessed with class member syntax even within the class itself. Their scope is global assuming to use class member syntax. [code] // A class constant is accessed with class member syntax class Test { const HELLO = "Hello world!"; function __construct() { echo Test::HELLO; // even within the class } } // Accessing the class constant in global scope echo Test::HELLO; ) ) )