PHP.codeHinter

PHP.codeHinter manual

Select a PHP term. See what it does.

Reading a PHP tutorial or taking a PHP class or course? Select a term like class on a tutorial or reference page to see what it means right where you’re reading.

  1. Select a term

    Double-click a keyword or function name. Drag across an operator or a term with more than one word.

  2. Read the hint

    See the definition and a short PHP example without leaving the page.

The More… buttons are Show-in-context ↗ links. More if you need it.

Go to the example tables

Example

Selected termclass

Install or enable the extension

Choose PHP in the CodeHinters toolbar settings, or load the separate PHP.codehinter.ext folder if you have the unpacked extension. Enable one Hinter at a time.

Quality control

All 210 examples passed syntax checks with PHP 8.5.10.

Sources

PHP Manual is the primary reference. Its documentation is licensed under CC BY 3.0 or later. Relevant W3Schools PHP lessons are linked as a second reference.

Privacy & Data

Hint lookups and usage counts stay in Chrome. See the CodeHinters Privacy Policy for licensing and support details.

Support

CodeHinters support and feedback

PHP example tables

With the extension enabled, click an entry to see its hint. After clicking an entry, use the arrow keys to move between terms in that table. Double-click an entry to open its More… reference in a new tab, even without the extension. You can also focus an entry and press Shift+Enter. These tables are a test page. The extension also works on webpages where you can select supported PHP terms.

Types and literals (14)

boolcallablefalsefloat
intiterablemixednever
nullobjectresourcestring
truevoid

Keywords (68)

__halt_compilerabstractarrayas
breakcasecatchclass
cloneconstcontinuedeclare
defaultdiedoecho
elseelseifemptyenddeclare
endforendforeachendifendswitch
endwhileenumevalexit
extendsfinalfinallyfn
forforeachfunctionglobal
gotoifimplementsinclude
include_onceinstanceofinsteadofinterface
issetlistmatchnamespace
newprintprivateprotected
publicreadonlyrequirerequire_once
returnstaticswitchthrow
traittryunsetuse
varwhileyieldyield from

Superglobals (9)

$_COOKIE$_ENV$_FILES$_GET
$_POST$_REQUEST$_SERVER$_SESSION
$GLOBALS

Magic constants (8)

__CLASS____DIR____FILE____FUNCTION__
__LINE____METHOD____NAMESPACE____TRAIT__

Functions (50)

array_filterarray_key_existsarray_keysarray_map
array_mergearray_reducearray_slicearray_sum
array_valuescountdatedefine
explodefile_existsfile_get_contentsfilter_var
gettypeheaderhtmlentitieshtmlspecialchars
http_build_queryimplodein_arrayintval
is_arrayis_stringjson_decodejson_encode
ksortpassword_hashpassword_verifypreg_match
print_rprintfrandom_intsession_start
sortsprintfstr_containsstr_ends_with
str_replacestr_starts_withstrlenstrpos
strtolowerstrtouppersubstrtime
trimvar_dump

Classes and interfaces (7)

DateTimeDateTimeImmutableExceptionGenerator
PDOstdClassThrowable

Operators (54)

!!=!==%
%=&&&&=
*****=*=
++++=-
---=->.
....=//=
::<<<<<=
<=<=><>=
======>>
>=>>>>=?
?->?:????=
@^^=and
orxor||=
||~