php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #1027 fprintf() please
Submitted: 1999-01-05 04:09 UTC Modified: 2002-01-09 10:02 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: smr at csc dot dk Assigned:
Status: Duplicate Package: Feature/Change Request
PHP Version: 4.0 OS:
Private report: No CVE-ID: None
 [1999-01-05 04:09 UTC] smr at csc dot dk
Quite often my PHP3-scripts take input from the user, and writes it into a file. I can do

          fputs($fp,sprintf("%2d\n",$variable));

but it really looks ghastly. Fprintf would be nice to have.

I would also suggest that you take all the stdio-derived functions which is dispersed throughout the manual (in Filesystem and Strings) and collect them in a new section called "File I/O" or equivalent.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 12:40 UTC] jimw@php.net
still no fprintf. refiled against 4.0.
 [2001-02-10 12:55 UTC] jimw@php.net
really moved to 4.0 this time.
 [2001-07-22 12:27 UTC] andy@php.net
Is fprintf going to be added or should this request be closed?
 [2002-01-09 10:02 UTC] jan@php.net
was duped by 14949 which is more descriptive ;)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 10 10:01:27 2024 UTC