PHP vfprintf() May 23, 2012 Pramod T P 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