PHP 8.3+

PHP 8 Tutorial & Reference

Types, functions, objects, superglobals, passwords, and PDO prepared statements.

Clear
Popular:

PHP 8.3+ Learning Path

Follow the PHP 8 Curriculum

Read the guides in order from fundamentals to production patterns, or jump to your current skill level.

Showing 6 of 73 guides

PHP 8 Intermediate

$_POST, Output Escaping, and XSS Prevention

How do I read a POST form and escape it before HTML?

HTTP & Files 9 min
PHP 8 Intermediate

json_encode, json_decode, and JSON_THROW_ON_ERROR

How do I return and parse JSON in PHP without silent failures?

HTTP & Files 9 min
PHP 8 Intermediate

PHP Sessions for a Signed-In User

How do I store a user id in $_SESSION safely?

HTTP & Files 8 min
PHP 8 Intermediate

filter_var for Email and Integers

How do I validate an email and an integer with filter_var?

HTTP & Files 7 min
PHP 8 Intermediate

PHP json_validate

How do I check a JSON string without decoding it into an array?

HTTP & Files 6 min
PHP 8 Intermediate

PHP Headers and Output

How do I send a status and a redirect before any HTML?

HTTP & Files 6 min

Need more coins?

You do not have enough coins for this action.

Your balance: 0 coins

Share

Reactions

Loading reactions…