34,333
edits
Changes
→Printing Formatting Strings in PHP
</pre>
== Printing Formatting Formatted Strings in PHP ==
Those familar with other programming langusges languages such as C and C++ will probably be familiar with the concept of formatting strings and the ''printf()'' function. The printf function allows strings to constructed which contain variables and provides a number of formatting options for those variables.
Essentially printf allows you to specify a string and define how particular variables are to be embedded in that string. ''fprintf()'' takes two or more arguments and takes the the following form: