note 105740 added to language.constants.syntax

From: Date: Sun, 11 Sep 2011 19:09:15 +0000
Subject: note 105740 added to language.constants.syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-183098@lists.php.net to get a copy of this message
Obtendo constantes definidas do php! | Getting constant set of php! <?php define("MINHA_DEFINE", "definido por mim"); define("MY_DEFINE", "set by me"); $constant = get_defined_constants(); //Array | lista de constantes definidas | list of defined constants foreach($constant as $const => $v) { echo $const." - ".$v."<br />"; } ?> Saída no Browser! output in the browser E_ERROR - 1 E_RECOVERABLE_ERROR - 4096 E_WARNING - 2 E_PARSE - 4 E_NOTICE - 8 E_STRICT - 2048 E_DEPRECATED - 8192 E_CORE_ERROR - 16 E_CORE_WARNING - 32 E_COMPILE_ERROR - 64 E_COMPILE_WARNING - 128 E_USER_ERROR - 256 E_USER_WARNING - 512 E_USER_NOTICE - 1024 E_USER_DEPRECATED - 16384 E_ALL - 30719 TRUE - 1 FALSE - NULL - ZEND_THREAD_SAFE - 1 ZEND_DEBUG_BUILD - PHP_VERSION - 5.3.5 PHP_MAJOR_VERSION - 5 PHP_MINOR_VERSION - 3 PHP_RELEASE_VERSION - 5 PHP_EXTRA_VERSION - PHP_VERSION_ID - 50305 PHP_ZTS - 1 PHP_DEBUG - 0 ... MINHA_DEFINE - Definido por mim MY_DEFINE - set by me ---- Server IP: 69.147.83.197 Probable Submitter: 201.12.130.68 ---- Manual Page -- http://www.php.net/manual/en/language.constants.syntax.php Edit -- https://master.php.net/note/edit/105740 Del: integrated -- https://master.php.net/note/delete/105740/integrated Del: useless -- https://master.php.net/note/delete/105740/useless Del: bad code -- https://master.php.net/note/delete/105740/bad+code Del: spam -- https://master.php.net/note/delete/105740/spam Del: non-english -- https://master.php.net/note/delete/105740/non-english Del: in docs -- https://master.php.net/note/delete/105740/in+docs Del: other reasons-- https://master.php.net/note/delete/105740 Reject -- https://master.php.net/note/reject/105740 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183098) next »