|
PHP5中文手册
fprintf(PHP 5) fprintf — Write a formatted string to a stream 说明
int fprintf
( resource $handle
, string $format
[, mixed $args
[, mixed $...
]] )
Write a string produced according to format to the stream resource specified by handle . 返回值Returns the length of the outputted string. 范例
Example#1 fprintf(): zero-padded integers
<?php Example#2 fprintf(): formatting currency
<?php |