note 63247 added to function.func-get-args

From: Date: Fri, 17 Mar 2006 02:21:33 +0000
Subject: note 63247 added to function.func-get-args
Groups: php.notes 
Request: Send a blank email to php-notes+get-105962@lists.php.net to get a copy of this message
If you're used to perl5, the following perl code: sub foo { @array=@_; ...code } can be implemented in PHP as: <?php function foo() { $array=func_get_args(); ...code } ?> ---- Server IP: 61.195.146.164 Probable Submitter: 61.195.156.129 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.func-get-args.php Edit -- http://master.php.net/note/edit/63247 Del: integrated -- http://master.php.net/note/delete/63247/integrated Del: useless -- http://master.php.net/note/delete/63247/useless Del: bad code -- http://master.php.net/note/delete/63247/bad+code Del: spam -- http://master.php.net/note/delete/63247/spam Del: non-english -- http://master.php.net/note/delete/63247/non-english Del: in docs -- http://master.php.net/note/delete/63247/in+docs Del: other reasons-- http://master.php.net/note/delete/63247 Reject -- http://master.php.net/note/reject/63247 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105962) next »