[PHP-DOC] Bug #14112 Updated: sprintf_array() From: derick <email protected>
Date: 11/19/01

ID: 14112
Updated by: derick
Reported By: lenar <email protected>
Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: 4.1.0RC1
New Comment:

It's now documented

Previous Comments:
------------------------------------------------------------------------

[2001-11-19 08:05:03] lenar <email protected>

Already coing to be documented (according to newsgroup
messages).
Sorry. Closing again.

------------------------------------------------------------------------

[2001-11-19 08:00:58] lenar <email protected>

Not finding anything about those functions [vprintf(),
vsprintf()] in documentation..

------------------------------------------------------------------------

[2001-11-19 07:11:34] zak <email protected>

Poof! Apparently Andrei is prescient. :)

Use vprintf() and vsprintf() to do exactly what you
requested.

------------------------------------------------------------------------

[2001-11-19 07:09:54] lenar <email protected>

Your solution seems fine to me.
It doesn't change the functionality I requested, so no
objections.

------------------------------------------------------------------------

[2001-11-19 06:47:50] zak <email protected>

I would guess that implementing it as a native PHP
function would be at least 2x as fast.

I suppose the issue now is finding out if the core PHP
developers consider the function to have enough value to
add it.

My personal, non-core developer, opinion is that I don't
like the idea of adding this function.

Perhaps instead we could overload the current
implementations of printf and sprintf so that they can
accept a single-dimension array as the second parameter
(and in this case, final, parameter)?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/?id=14112

Edit this bug report at http://bugs.php.net/?id=14112&edit=1