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
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
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
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
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
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 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