note 95540 added to function.func-get-args

From: Date: Fri, 08 Jan 2010 01:51:07 +0000
Subject: note 95540 added to function.func-get-args
Groups: php.notes 
Request: Send a blank email to php-notes+get-164768@lists.php.net to get a copy of this message
Yet another (but more robust) implementation of *both* named parameters && parameter skipping -- "PHP Skipped and Named Parameters" under http://seoegghead.com/software/ By including this line at the top of any function: "include(par.php); // hook in the Par code" One can do this: getUsers(_, _, $username); // Note the underscores. -or- getUsers(_, PAR('username', $username)); There is a bit of overhead, but only where it is used. ---- Server IP: 69.147.83.197 Probable Submitter: 24.89.167.66 ---- Manual Page -- http://www.php.net/manual/en/function.func-get-args.php Edit -- https://master.php.net/note/edit/95540 Del: integrated -- https://master.php.net/note/delete/95540/integrated Del: useless -- https://master.php.net/note/delete/95540/useless Del: bad code -- https://master.php.net/note/delete/95540/bad+code Del: spam -- https://master.php.net/note/delete/95540/spam Del: non-english -- https://master.php.net/note/delete/95540/non-english Del: in docs -- https://master.php.net/note/delete/95540/in+docs Del: other reasons-- https://master.php.net/note/delete/95540 Reject -- https://master.php.net/note/reject/95540 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#164768) next »