You are here : phpstringvfprintf

vfprintf() - string

Write a string produced according to format to the
   stream resource specified by handle.
Parameters :
  • handle -
  • format - See sprintf() for a description of format.
  • args -

  • Syntax

    int vfprintf
        ( resource $handle
       , string $format
       , array $args
       )


    Example

    <?phpif (!($fp = fopen('date.txt', 'w')))    return;vfprintf($fp, "%04d-%02d-%02d", array($year, $month, $day));// will write the formatted ISO date to date.txt?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference