note 38981 added to function.func-get-args
| From: | Vincent at rn2 dot php dot net | Date: | Wed, 14 Jan 2004 01:02:28 +0000 |
| Subject: | note 38981 added to function.func-get-args | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63484@lists.php.net to get a copy of this message | ||
Here is a <i>very</i> easy way to make your own array function using func_get_args():
<?php
function my_array() {
return func_get_args(); // Will act like an array construct
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.func-get-args.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38981
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38981&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38981&report=yes
Search -- http://master.php.net/manage/user-notes.php