This post is part of the PHP Snippets series where I will be covering the basics of developing in PHP.
The printf
function is similar to the echo
function in that it will output text, but differs in that it outputs a formatted string.
The syntax of the printf
function is:
printf( string, arg 1, arg 2, ... )
Multiple arguments can be provided to the function for each of the placeholders to be replaced.