PHP 8 · Types and functions

Call with named arguments

Name arguments to skip optional ones and make calls readable.

$result = htmlspecialchars($text, double_encode: false);

Official PHP 8 documentation

More types and functions commands

All types and functions commands · PHP 8 cheatsheet

Was this page helpful?