IT. Expert System.

PHP

Gets constants


ReflectionExtension::getConstants

(PHP 5)

ReflectionExtension::getConstantsGets constants

Description

public array ReflectionExtension::getConstants ( void )

Get defined constants from an extension.

Parameters

This function has no parameters.

Return Values

An associative array with constant names as keys.

Examples

Example #1 ReflectionExtension::getConstants() example

<?php
$ext 
= new ReflectionExtension('DOM');

print_r($ext->getConstants());
?>

The above example will output something similar to:

 Array (  [XML_ELEMENT_NODE] => 1  [XML_ATTRIBUTE_NODE] => 2  [XML_TEXT_NODE] => 3  [XML_CDATA_SECTION_NODE] => 4  [XML_ENTITY_REF_NODE] => 5  [XML_ENTITY_NODE] => 6  [XML_PI_NODE] => 7  [XML_COMMENT_NODE] => 8  [XML_DOCUMENT_NODE] => 9  [XML_DOCUMENT_TYPE_NODE] => 10  [XML_DOCUMENT_FRAG_NODE] => 11  [XML_NOTATION_NODE] => 12  [XML_HTML_DOCUMENT_NODE] => 13  [XML_DTD_NODE] => 14  [XML_ELEMENT_DECL_NODE] => 15  [XML_ATTRIBUTE_DECL_NODE] => 16  [XML_ENTITY_DECL_NODE] => 17  [XML_NAMESPACE_DECL_NODE] => 18  [XML_LOCAL_NAMESPACE] => 18  [XML_ATTRIBUTE_CDATA] => 1  [XML_ATTRIBUTE_ID] => 2  [XML_ATTRIBUTE_IDREF] => 3  [XML_ATTRIBUTE_IDREFS] => 4  [XML_ATTRIBUTE_ENTITY] => 6  [XML_ATTRIBUTE_NMTOKEN] => 7  [XML_ATTRIBUTE_NMTOKENS] => 8  [XML_ATTRIBUTE_ENUMERATION] => 9  [XML_ATTRIBUTE_NOTATION] => 10  [DOM_PHP_ERR] => 0  [DOM_INDEX_SIZE_ERR] => 1  [DOMSTRING_SIZE_ERR] => 2  [DOM_HIERARCHY_REQUEST_ERR] => 3  [DOM_WRONG_DOCUMENT_ERR] => 4  [DOM_INVALID_CHARACTER_ERR] => 5  [DOM_NO_DATA_ALLOWED_ERR] => 6  [DOM_NO_MODIFICATION_ALLOWED_ERR] => 7  [DOM_NOT_FOUND_ERR] => 8  [DOM_NOT_SUPPORTED_ERR] => 9  [DOM_INUSE_ATTRIBUTE_ERR] => 10  [DOM_INVALID_STATE_ERR] => 11  [DOM_SYNTAX_ERR] => 12  [DOM_INVALID_MODIFICATION_ERR] => 13  [DOM_NAMESPACE_ERR] => 14  [DOM_INVALID_ACCESS_ERR] => 15  [DOM_VALIDATION_ERR] => 16 ) 

See Also



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 34 / 158794482. Delta: 0.09512 с