top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What are the Formatting and Printing Strings available in PHP?

+4 votes
304 views
What are the Formatting and Printing Strings available in PHP?
posted May 24, 2016 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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

answer May 24, 2016 by Shivam Kumar Pandey
...