Re: Feature?
| From: | Brian White | Date: | Tue, 25 Sep 2001 23:18:30 +0000 |
| Subject: | Re: Feature? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68790@lists.php.net to get a copy of this message | ||
Actually this is a feature of Python. It is VERY useful and I would be
ecstatic if it turned up in PHP.
Regs
Brian White
At 11:36 25/09/2001 +0300, Andrey Hristov wrote:
After some days spent in a hospital reading "Programming Perl" and "Oracle Web Applications" I found that a language construct which appears in Perl and PL/SQL is not available in PHP. As in most 3G languages function call is like that $bar=foo($bar1,$bar2,$bar3,'bar4'); function foo($par1=1,$par2=2,$par3=3,$par4='foo_bar',...){ ... } In the case when I've few parameters I've to remember their order, so why not $bar=foo('par2'=>10); I want to pass value to only one or more but not to all params. Also this will make the code clearer I think. Comments are welcome! Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: bwhite@steptwo.com.au