What is ??= in PHP?

Viewed 29

I've only seen it in examples for WeakMaps, and I can't find anything about it when looking at a list of operators nor the documentation for null coalescing.

Example:

return $this->cache[$prod] ??= $this->findReviews($prod->id());
0 Answers
Related