(PHP 5, PHP 7)
vfprintf — 锟斤拷锟斤拷式锟斤拷锟街凤拷锟斤拷写锟斤拷锟斤拷
$handle
, string $format
, array $args
) : int
锟斤拷锟斤拷 handle
指锟斤拷锟斤拷锟斤拷锟斤拷源锟斤拷锟斤拷锟叫达拷锟斤拷锟斤拷 format
锟斤拷式锟斤拷锟斤拷锟斤拷址锟斤拷锟斤拷锟�
锟斤拷锟斤拷锟斤拷 fprintf() 锟斤拷锟斤拷锟斤拷锟狡o拷锟斤拷锟角斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟揭幌碉拷锌杀锟斤拷锟斤拷锟斤拷牟锟斤拷锟斤拷锟�
锟斤拷锟斤拷锟斤拷锟斤拷址锟斤拷锟斤拷某锟斤拷取锟�
Example #1 vfprintf(): 前锟斤拷 0 锟斤拷锟斤拷锟斤拷
<?php
if (!($fp = fopen('date.txt', 'w')))
return;
vfprintf($fp, "%04d-%02d-%02d", array($year, $month, $day));
// 锟斤拷锟斤拷 date.txt 写锟斤拷锟绞斤拷锟斤拷锟� ISO 锟斤拷准锟斤拷锟斤拷
?>