0

I found out that laravel use '??' symbol in php

the example code is

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

What does '??' mean ?

Lejiend
  • 1,219
  • 2
  • 16
  • 24
  • 3
    It's the [null coalescing operator](http://php.net/manual/en/language.operators.comparison.php#language.operators.comparison.coalesce), introduced in PHP 7. Not related to Laravel in any way. – axiac Feb 22 '18 at 06:58
  • Thank you @axiac – Lejiend Feb 23 '18 at 03:16

0 Answers0