PHP 8.5.0 Alpha 1 available for testing

Voting

: five minus zero?
(Example: nine)

The Note You're Voting On

Hayley Watson
13 years ago
If you use argument numbering, then format specifications with the same number get the same argument; this can save repeating the argument in the function call.

<?php

$pattern
= '%1$s %1$\'#10s %1$s!';

printf($pattern, "badgers");
?>

<< Back to user notes page

To Top