note 39480 added to function.vsprintf
| From: | drm at melp dot nl | Date: | Fri, 30 Jan 2004 02:02:51 +0000 |
| Subject: | note 39480 added to function.vsprintf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64401@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_pop:
<?
function someFunc () {
$args = func_get_args ();
$format = array_pop ( $args );
// do something
return vsprintf ( $format, $args );
}
?>
keeps it clean ;)
----
Manual Page -- http://www.php.net/manual/en/function.vsprintf.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39480
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39480&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39480&report=yes
Search -- http://master.php.net/manage/user-notes.php