note 110244 added to reserved.keywords
| From: | Chris | Date: | Thu, 04 Oct 2012 16:33:14 +0000 |
| Subject: | note 110244 added to reserved.keywords | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191130@lists.php.net to get a copy of this message | ||
Here they are as arrays:
<?php
$keywords = array('__halt_compiler', 'abstract', 'and',
'array', 'as', 'break', 'callable', 'case',
'catch', 'class', 'clone', 'const', 'continue',
'declare', 'default', 'die', 'do', 'echo',
'else', 'elseif', 'empty', 'enddeclare', 'endfor',
'endforeach', 'endif', 'endswitch', 'endwhile',
'eval', 'exit', 'extends', 'final', 'for',
'foreach', 'function', 'global', 'goto', 'if',
'implements', 'include', 'include_once', 'instanceof',
'insteadof', 'interface', 'isset', 'list',
'namespace', 'new', 'or', 'print', 'private',
'protected', 'public', 'require', 'require_once',
'return', 'static', 'switch', 'throw', 'trait',
'try', 'unset', 'use', 'var', 'while',
'xor');
$predefined_constants = array('__CLASS__', '__DIR__', '__FILE__',
'__FUNCTION__', '__LINE__', '__METHOD__', '__NAMESPACE__',
'__TRAIT__');
?>
Along with get_defined_functions() and get_defined_constants(), this can be useful for checking
eval() statements.
----
Server IP: 69.147.83.199
Probable Submitter: 168.251.194.15
----
Manual Page -- http://www.php.net/manual/en/reserved.keywords.php
Edit -- https://master.php.net/note/edit/110244
Del: integrated -- https://master.php.net/note/delete/110244/integrated
Del: useless -- https://master.php.net/note/delete/110244/useless
Del: bad code -- https://master.php.net/note/delete/110244/bad+code
Del: spam -- https://master.php.net/note/delete/110244/spam
Del: non-english -- https://master.php.net/note/delete/110244/non-english
Del: in docs -- https://master.php.net/note/delete/110244/in+docs
Del: other reasons-- https://master.php.net/note/delete/110244
Reject -- https://master.php.net/note/reject/110244
Search -- https://master.php.net/manage/user-notes.php