List Info

Thread: note 78457 added to function.fprintf




note 78457 added to function.fprintf
user name
2007-10-12 12:43:16
Wouldn't it be easier to do this in PHP 4?

<?php

$fp = fopen ('date.txt', 'w');
fwrite($fp, sprintf("%04d-%02d-%02d", $year,
$month, $day));

?>
----
Server IP: 69.147.83.197
Probable Submitter: 67.42.120.90
----
Manual Page -- htt
p://www.php.net/manual/en/function.fprintf.php
Edit        -- https://master
.php.net/note/edit/78457
Del: integrated  -- h
ttps://master.php.net/note/delete/78457/integrated
Del: useless     -- http
s://master.php.net/note/delete/78457/useless
Del: bad code    -- htt
ps://master.php.net/note/delete/78457/bad+code
Del: spam        -- https:/
/master.php.net/note/delete/78457/spam
Del: non-english -- 
https://master.php.net/note/delete/78457/non-english
Del: in docs     -- http
s://master.php.net/note/delete/78457/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78457
Reject      -- https://mast
er.php.net/note/reject/78457
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )