slide 44
Copyright © 2005 W3C (MIT, ERCIM, Keio)
Handling variables
Composite messages
"There were %1\$d validation errors in the file %2\$s ." , $errors , $filename )
"Die Datei %2\$s enthält %1\$d Gültigkeitsfehler." ,
$errors , $filename )
Die Datei myFirst.html enthält 268 Gültigkeitsfehler.
Go to previous slide Go to next slide Go to the first slide Go to the slide index Go to the PDF version
Slide 44 of 53
By the way, there is a way to produce the right effect while using the %d and %s variable markers in a PHP string, but it involves a slightly more complex syntax. This is shown in the above slide. The numeric markers refer to the relevant variable in the parameters that follow the string, even after reordering.