sprintf with dynamic number of elements
- From: "Bosconian" <nobody@xxxxxxxxxxx>
- Date: Mon, 27 Nov 2006 17:55:58 -0800
I'm looking for a way to pass a dynamic number of args to sprintf.
So instead of
$a = "a";
$b = "b";
$c = "c";
sprintf($format, $a, $b, $c)
one could
$args = array("a", "b", "c");
sprintf($format, $args)
It seems like sprintf should support this natively, but it doesn't.
Is there a way to accomplish this?
.
- Follow-Ups:
- Re: sprintf with dynamic number of elements
- From: Michael Fesser
- Re: sprintf with dynamic number of elements
- From: Rudi Menter
- Re: sprintf with dynamic number of elements
- Prev by Date: html to php help
- Next by Date: Re: html to php help
- Previous by thread: html to php help
- Next by thread: Re: sprintf with dynamic number of elements
- Index(es):
Relevant Pages
|