Thursday, February 22, 2018

what’s the meaning/function for ‘??’ in php/laravel [duplicate] - development

what’s the meaning/function for ‘??’ in php/laravel [duplicate]

This question already has an answer here:

I found out that laravel use ‘??’ symbol in php

the example code is

  $this->connections->connection($config['connection'] ?? null)

What does ‘??’ mean ?



from Laravel Questions and Answers https://laravelquestions.com/php/whats-the-meaning-function-for-in-php-laravel-duplicate/
via Lzo Media

No comments:

Post a Comment