June 28th, 2000, 08:03 PM
Hi, new to PHP - have read half of the WROX book, but didn't find an explanation of the use of %s and %d as placeholders, as in the following code.
printf("Untrusted PHP code: <i>%s</i>",
why this syntax, instead of
printf("Untrusted PHP code: <i>htmlspecialchars($data)</i>",
Is there somewhere an explanation of using %s and %d as placeholders?
Thanks for any help on this.
Director of Instructional Technology
Bellevue Schools, Washington State
June 29th, 2000, 06:55 AM
The %s and %d are C string format specifiers. You can find them in any C or C++ book.
June 29th, 2000, 09:36 AM