Bug #14112 Updated: sprintf_array()
| From: | zak@php.net | Date: | Mon, 19 Nov 2001 10:53:41 +0000 |
| Subject: | Bug #14112 Updated: sprintf_array() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-70892@lists.php.net to get a copy of this message | ||
ID: 14112
Updated by: zak
Reported By: lenar@vision.ee
Status: Open
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.1.0RC1
New Comment:
Why not just build your own function?
function sprintf_array ($format) {
if (1 == func_get_args () ) {
return sprintf ($format);
}
$argv = func_get_args ();
return call_user_func_array ('sprintf', $argv);
}
(Not tested, but something like this should work. :)
Previous Comments:
------------------------------------------------------------------------
[2001-11-19 05:46:48] lenar@vision.ee
Hi,
During development i felt great need for function
that could be named sprintf_array()
That is ordinary sprintf() which would be able
to take arguments from array:
string sprintf_array(string format, array args)
What do you think?
Lenar
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14112&edit=1