note 62431 deleted from function.fprintf by cece
| From: | cece@php.net | Date: | Fri, 26 May 2006 08:35:26 +0000 |
| Subject: | note 62431 deleted from function.fprintf by cece | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-112314@lists.php.net to get a copy of this message | ||
Note Submitter: Ed
----
Here's one way to do fprintf with php 4:
function fprintf4() {
echo func_num_args();
$format_and_arguments = func_get_args();
$file = array_shift($arguments);
fwrite($file, call_user_func_array('sprintf', $format_and_arguments));
}