
June 28th, 2000, 07:03 PM
|
|
Junior Member
|
|
Join Date: Jun 2000
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
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>",
htmlspecialchars($data));
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.
------------------
John Newsom
Director of Instructional Technology
Bellevue Schools, Washington State
|