Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PHP 5.6 keywords and stuff (as of 21.01.2015)
PHP 5.6 keywords and stuff (as of 21.01.2015)
---
PHP Keywords:
(http://php.net/manual/en/reserved.keywords.php)
__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
finally
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
yield
Compile-time constants:
(http://php.net/manual/en/reserved.keywords.php)
__CLASS__
__DIR__
__FILE__
__FUNCTION__
__LINE__
__METHOD__
__NAMESPACE__
__TRAIT__
Magic methods:
(http://php.net/manual/en/language.oop5.magic.php)
__construct()
__destruct()
__call()
__callStatic()
__get()
__set()
__isset()
__unset()
__sleep()
__wakeup()
__toString()
__invoke()
__set_state()
__clone()
__debugInfo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.