How to Use vprintf in PHP

In this article I will explain how vprintf Function can be used in PHP.
  • 1394
vprintf() function

This function outputs a formatted string.

Syntax

 vprintf(format,argarray)

Example

<html>
<body>
<?php
$str = "Hi";
$number = 007;
vprintf("%s Sachin. Day number %u",array($str,$number));
?>
</body>
</html>

 

Output


vprintf-php.jpg

You may also want to read these related articles Click here

Ask Your Question

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.