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.
- Select a term
Double-click a keyword or function name. Drag across an operator or a term with more than one word.
- 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.
Example
classInstall 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
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)
| bool | callable | false | float |
| int | iterable | mixed | never |
| null | object | resource | string |
| true | void |
Keywords (68)
| __halt_compiler | abstract | array | as |
| break | case | catch | class |
| clone | const | continue | declare |
| default | die | do | echo |
| else | elseif | empty | enddeclare |
| endfor | endforeach | endif | endswitch |
| endwhile | enum | eval | exit |
| extends | final | finally | fn |
| for | foreach | function | global |
| goto | if | implements | include |
| include_once | instanceof | insteadof | interface |
| isset | list | match | namespace |
| new | private | protected | |
| public | readonly | require | require_once |
| return | static | switch | throw |
| trait | try | unset | use |
| var | while | yield | yield 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_filter | array_key_exists | array_keys | array_map |
| array_merge | array_reduce | array_slice | array_sum |
| array_values | count | date | define |
| explode | file_exists | file_get_contents | filter_var |
| gettype | header | htmlentities | htmlspecialchars |
| http_build_query | implode | in_array | intval |
| is_array | is_string | json_decode | json_encode |
| ksort | password_hash | password_verify | preg_match |
| print_r | printf | random_int | session_start |
| sort | sprintf | str_contains | str_ends_with |
| str_replace | str_starts_with | strlen | strpos |
| strtolower | strtoupper | substr | time |
| trim | var_dump |
Classes and interfaces (7)
| DateTime | DateTimeImmutable | Exception | Generator |
| PDO | stdClass | Throwable |
Operators (54)
| ! | != | !== | % |
| %= | & | && | &= |
| * | ** | **= | *= |
| + | ++ | += | - |
| -- | -= | -> | . |
| ... | .= | / | /= |
| :: | < | << | <<= |
| <= | <=> | <> | = |
| == | === | => | > |
| >= | >> | >>= | ? |
| ?-> | ?: | ?? | ??= |
| @ | ^ | ^= | and |
| or | xor | | | |= |
| || | ~ |