• PHP Video Tutorials

PHP - Function Vprintf



Syntax

vprintf(format,argarray)

Definition and Usage

It used to convert string to formatted string

Return Values

It returns the length of returned string

Parameters

Sr.No Parameters & Description
1

format

It is used to specifies string and how to format the variable in it

2

argarray

It is used to specifies an array with argument to be inserted

Example

Try out the following example

<?php
   $number = 22;
   $str = "Tutorials point";
   
   vprintf("There are %u million users for %s.",array($number,$str));
?>

This will produce following result −

There are 22 million users for Tutorials point.
php_function_reference.htm
Advertisements