It’s null coalesce operator
.
It will return $_GET['page']
unless it’s null
. In case it’s null it would return default value 'home'
.
It has same meaning as:
!is_null($_GET['page']) ? $_GET['page'] : 'home'
1
solved PHP syntax ?? meaning,can somebody explain? [duplicate]