PHP_CompatInfo::getConstants

PHP_CompatInfo::getConstants() – Returns the latest parse data source constants declared

Synopsis

require_once 'PHP/CompatInfo.php';

mixed PHP_CompatInfo::getConstants ( mixed $file = false )

Description

Returns the latest parse data source constants declared (internal or end-user defined)

Parameter

mixed $file

(optional) A specific filename or not (FALSE)

Return value

returns Null on error or if there were no previous data parsing

Throws

throws no exceptions thrown

Since

since version 1.9.0b1 (2008-11-30)

Note

This function can not be called statically.

Example

See PHP_CompatInfo::getVersion() example.