vfprintf()

It writes a formatted string to a specified output stream

Example

<?php
$file = fopen(“test.txt”,”w”);
echo vfprintf($file,”%s%s”,array(“PHP”,”Code”));
?>

Output

7