php man page for vfprintf

Query: vfprintf

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

VFPRINTF(3)								 1							       VFPRINTF(3)

vfprintf - Write a formatted string to a stream

SYNOPSIS
int vfprintf (resource $handle, string $format, array $args)
DESCRIPTION
Write a string produced according to $format to the stream resource specified by $handle. Operates as fprintf(3) but accepts an array of arguments, rather than a variable number of arguments.
PARAMETERS
o $handle - o $format - See sprintf(3) for a description of $format. o $args -
RETURN VALUES
Returns the length of the outputted string.
EXAMPLES
Example #1 vfprintf(3): zero-padded integers <?php if (!($fp = fopen('date.txt', 'w'))) return; vfprintf($fp, "%04d-%02d-%02d", array($year, $month, $day)); // will write the formatted ISO date to date.txt ?>
SEE ALSO
printf(3), sprintf(3), sscanf(3), fscanf(3), vsprintf(3), number_format(3). PHP Documentation Group VFPRINTF(3)
Related Man Pages
vfprintf(3p) - centos
vsnprintf(3p) - centos
vsnprintf(3p) - suse
vsprintf(3) - posix
vsprintf(9f) - posix
Similar Topics in the Unix Linux Community
Appending date to filename
Rename old files with last modification date
Finding/Grep on files with date and hour in the file name
Need to append the date | abcddate.txt to the first line of my txt file
Simple 'date' to 001 scheme script