PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

printf

(PHP 4, PHP 5)

printfOutput a formatted string

Description

int printf ( string $format [, mixed $args [, mixed $... ]] )

Produces output according to format.

Parameters

format

See sprintf() for a description of format.

args

...

Return Values

Returns the length of the outputted string.

See Also

  • print() - Output a string
  • sprintf() - Return a formatted string
  • vprintf() - Output a formatted string
  • sscanf() - Parses input from a string according to a format
  • fscanf() - Parses input from a file according to a format
  • flush() - Flush the output buffer

PHP Manual