WHAT IS THE USE OF SPRINTF() FUNCTION?

Sanjay Sharma

Total Post:42

Points:210
Posted by  Sanjay Sharma
PHP 
PHP
 1041  View(s)
Ratings:
Rate this:
  1. Sanjay Sharma

    Post:42

    Points:210
    What is the use of sprintf() function?

    The sprintf() function writes a formatted string to a variable.

    The arg1, arg2, ++ parameters will be inserted at percent (%) signs in the main string. This function works "step-by-step". At the first % sign, arg1 is inserted, at the second % sign, arg2 is inserted, etc.

      Modified On Apr-04-2016 01:13:18 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!