note 39480 modified in function.vsprintf by vincent
| From: | vincent@php.net | Date: | Fri, 30 Jan 2004 10:20:57 +0000 |
| Subject: | note 39480 modified in function.vsprintf by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64418@lists.php.net to get a copy of this message | ||
When combining with func_get_args as above, you might want to consider using array_shift:
<?
function someFunc () {
$args = func_get_args ();
$format = array_shift ( $args );
// do something
return vsprintf ( $format, $args );
}
?>
keeps it clean ;)
--was--
When combining with func_get_args as above, you might want to consider using array_pop:
<?
function someFunc () {
$args = func_get_args ();
$format = array_pop ( $args );
// do something
return vsprintf ( $format, $args );
}
?>
keeps it clean ;)
http://www.php.net/manual/en/function.vsprintf.php