There are four formatting and printing strings available in php.
1. number_format()-Formats numbers as strings
2. printf()- Displays a formatted string
3. sprintf()-Saves a formatted string in a variable
4. fprintf() -Prints a formatted string to a file