Write some text to a file with fprintf in PHP
Description
The following code shows how to write some text to a file with fprintf.
Example
// w w w . j a v a 2 s . c o m
<?php
$number = 123;
$file = fopen("test.txt","w");
fprintf($file,"%f",$number);
?>