[PHP-DEV] Equal Null coalescing operator ??= https://github.com/php/php-src/pull/1795

2016-03-08 Thread Midori Kocak
Remember my question? $this->request->data['comments']['user_id'] = $this->request->data['comments']['user_id'] ?? ‘value’; I want to check if some var is null and if the same var is null set the same var to ‘value’. Hence I am repeating the same variable after the equal operator, this does n

Re: [PHP-DEV] Equal Null coalescing operator ??= https://github.com/php/php-src/pull/1795

2016-03-08 Thread Ralph Schindler
On 3/8/16 11:59 AM, Midori Kocak wrote: Remember my question? $this->request->data['comments']['user_id'] = $this->request->data['comments']['user_id'] ?? ‘value’; I want to check if some var is null and if the same var is null set the same var to ‘value’. Hence I am repeating the same var

Re: [PHP-DEV] Equal Null coalescing operator ??= https://github.com/php/php-src/pull/1795

2016-03-08 Thread Fleshgrinder
On 3/8/2016 6:59 PM, Midori Kocak wrote: > Remember my question? > > $this->request->data['comments']['user_id'] = > $this->request->data['comments']['user_id'] ?? ‘value’; > > I want to check if some var is null and if the same var is null set the same > var to ‘value’. > > Hence I am repeat

Re: [PHP-DEV] Equal Null coalescing operator ??= https://github.com/php/php-src/pull/1795

2016-03-08 Thread Sara Golemon
On Tue, Mar 8, 2016 at 9:59 AM, Midori Kocak wrote: > > $this->request->data['comments']['user_id'] = > $this->request->data['comments']['user_id'] ?? ‘value’; > $this->request->data['comments']['user_id’] ??= ‘value’; > RFC it so there's a proper vote process, but you've got mine (pending a pro