PHP Reserved Words

Favourite

Like other languages, PHP also have special keywords/reserved words, that have special meaning. The following words cannot be used as constants, class names, function or method names. Generally, It can be used as variable names, but could lead to confusion and should not be used.

abstract and array() as  break
case catch cfunction class clone
const continue declare default do
else elseif enddeclare endfor endforeach
endif endswitch endwhile extends final
for foreach function global goto
if implements interface instanceof  
namespace new old_function or private
protected public static switch throw
try use var while xor

Categories : Programming, PHP
Tags : Reserved Words, Keywords


author's photo

Author : Blue Cloud

Just a normal software developer who love to write code. Developing professional software since 1999. After working in the software industry for many years, I've started my own website to share knowledges and experiences.

COMMENTS
blog comments powered by Disqus
Contributors