[PHP-DEV] Named Parameters

2010-07-22 Thread G M
Rasmus - so what is the state of Named Parameters? We discussed it and the sentiment seemed to be more or less positive about including it in PHP 6.3 . Now what should happen? Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Named parameters

2010-10-15 Thread G M
Okay so I am thinking about submitting a patch to PHP that would enable you to call functions like this: stuff(1, 2, 'separator' => '', 'clean' => true); and define them like this: /** * function to do stuff * @param integer $a * @param integer $b * @param string $separator * Optional, y

Re: [PHP-DEV] Named parameters

2010-10-15 Thread G M
t; 'b', $c => $d)? PS: Please let's NOT make it stuff(1, 2, a => 'b', c => $d) as it would take away the option of having variable key names, which we can have in array(). Also it would create slight ambiguity with constants. On Oct 15, 2010, at 1:27 PM, Michae

[PHP-DEV] Re: internals Digest 18 Apr 2011 04:07:09 -0000 Issue 2314

2011-04-17 Thread G M
I wrote a function that takes a reference, like so: ifset($arr, $key, $default) wouldn't this be more in line with PHP's design, anyway? Greg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] ternary operator

2011-04-17 Thread G M
I should mention the more general use cases of the function I had made: ifset($arr, $key1, $key2, ..., $keyN, $default) actually, this function checks with array_key_exists, and not just isset. Meaning, if the value exists at that array key path and is null, it is used, otherwise, $default is u

[PHP-DEV] Fwd: Need authorization as New Wiki User

2015-03-21 Thread G. M. Shaharia Azam
d. Waiting for reply from someone. *Regards,* Shaharia http://blog.shahariaazam.com http://github.com/shahariaazam -- Forwarded message ------ From: G. M. Shaharia Azam Date: Thu, Mar 19, 2015 at 1:22 AM Subject: Need authorization as New Wiki User To: internals@lists.php.net =

[PHP-DEV] WIKI Account Authorization

2015-03-26 Thread G. M. Shaharia Azam
=== *PHP Wiki Username:* shaharia === *Hello,* I am Shaharia, recently created PHP Wiki account with this email address. My username was *'shaharia'. * As a PHP programmer since 7.5 years I always love to contribute to any kinds of open source project. And PHP is my passion and us