ID: 14112
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.1.0RC1
New Comment:

Yes something like this should work.

But it's not as fast as it could be.
And I personally like when thins are as fast
as possible.


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

[2001-11-19 05:53:41] [EMAIL PROTECTED]

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. :)


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

[2001-11-19 05:46:48] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to