Re: sprintf with dynamic number of elements
- From: "Bosconian" <nobody@xxxxxxxxxxx>
- Date: Mon, 27 Nov 2006 18:45:42 -0800
"ljb" <lbayuk@xxxxxxxxxxxxxxx> wrote in message
news:T6Nah.3987$ql2.1212@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
netizen@xxxxxx wrote:
.oO(Bosconian)
I'm looking for a way to pass a dynamic number of args to sprintf.
[...]
http://www.php.net/vsprintf
As stated above, vsprintf() is the answer in this case. In other cases,
you can use call_user_func_array() if you need to pass a variable number
of
arguments to a function.
I totally missed vsprintf() *blush*
Leave it to the PHP developers for thinking of EVERYTHING.
Anyway, sorry for wasting your time. I had previously visited the sprintf()
page, but overlooked vsprintf() for whatever reason.
.
- References:
- sprintf with dynamic number of elements
- From: Bosconian
- Re: sprintf with dynamic number of elements
- From: Michael Fesser
- sprintf with dynamic number of elements
- Prev by Date: Re: sprintf with dynamic number of elements
- Next by Date: Re: php 5 classes: public, protected and private
- Previous by thread: Re: sprintf with dynamic number of elements
- Index(es):
Relevant Pages
|