Skip to content

Instantly share code, notes, and snippets.

@smuuf
Created January 21, 2015 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smuuf/f3d511d6f81b39f07dab to your computer and use it in GitHub Desktop.
Save smuuf/f3d511d6f81b39f07dab to your computer and use it in GitHub Desktop.
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