PHP Manual
fprintf
Description
int fprintf ( resource handle, string format [, mixed args [, mixed ...]] )
Write a string produced according to format to the
stream resource specified by handle.
Examples
Write a string produced according to format to the
stream resource specified by handle.