note 95426 rejected from function.sprintf by danbrown

From: Date: Sun, 03 Jan 2010 01:30:00 +0000
Subject: note 95426 rejected from function.sprintf by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164550@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- L'explication sur cette page est incorrecte les exemple 3 et 4 sont faux %1$s n'est pas valide, la syntaxe correcte est %1\$ Exemples corrigés Example #3 Argument swapping <?php $format = 'The %2\$s contains %1\$d monkeys'; printf($format, $num, $location); ?> Example #4 Argument swapping <?php $format = 'The %\2$s contains %1\$d monkeys. That\'s a nice %2\$s full of %1\$d monkeys.'; printf($format, $num, $location); ?>

« previous php.notes (#164550) next »