Quartz 5

Home

❯

Org-roam

❯

PHP Named Arguments

PHP Named Arguments

Nov 12, 20201 min read

Description

Allowes named arguments1 to be used to access parameters in random order, as in JavaScript Named parameters.

Syntax

function tralala(string $a, string $b, string $c)
{
    echo $a.' '.$b.' '.$c;
}
 
tralala(b: 'la', c: 'la', a: 'tra');
// tra la la

Footnotes

Footnotes

  1. https://wiki.php.net/rfc/named_params ↩


Graph View

  • Description
  • Syntax
  • Footnotes

Backlinks

  • PHP 8.0
  • PHP

Created with Quartz v5.0.0 © 2026

  • GitHub
  • Discord Community