Re: [RFC] Syntax for variadic functions
| From: | Lester Caine | Date: | Thu, 29 Aug 2013 12:51:38 +0000 |
| Subject: | Re: [RFC] Syntax for variadic functions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68682@lists.php.net to get a copy of this message | ||
Nikita Popov wrote:
I'd like to propose an RFC, which adds dedicated syntax for variadic functions:I can remember in PHP4 days, passing parameters to the database as a string of variables was the norm. Then arrays came along and it was preferable to pass the query followed by an array of values. We could take the array and validate the data in a function, adding any missing values needed before processing the SQL. Going back to the cumbersum method of working just seems wrong? Surely we should be promoting a tidier method of working? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.ukhttps://wiki.php.net/rfc/variadics