Loading video...
Web Application Development
- PHP provides the built-in function
sprintf()for generating formatted strings. - The function takes a ‘formatted’ string, or string template, as its first parameter along with any data values that are to be inserted into the string template.
- The
'%'symbol followed by a type specifier is used to denote values to be filled in within a string template. - Example Usage:
$first = ‘Joe’;
$last = 'Smith';
$format = ‘My name is %s %s.’;
$str = sprintf($format, $first, $last); // equals 'My name is Joe Smith' - Additional Resources:
Web Application Development
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.


































Start Learning Now
Our free lessons will get you started (Flash® 10 required).
Sign up for Educator.comGet immediate access to our entire library.
Features Overview