Arguments
#1

Sorry for my bad english, i'm russian.

I created a function in which several arguments that you want to display in text form.

The solution I found, for example:
PHP код:
 printf ("% d", getarg (i)); 
But, because the exact number to display not foresee, and create a lot of inspections and they concluded - is silly.
PHP код:
 printf ("% d,% d ...", getarg (i), getarg (i + 1 ) ...); 
It would be so simple..
PHP код:
printf ("% d", (for (i = 2 ; i <numarg (); i ++) getarg (i)));
// Somewhere in parallel reality 
Curious about how function format .
Can anyone tell me that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)