The null coalescing assignment operator is a shorthand for null coalescing operations. Let’s take a example code $data[‘date’] = $data[‘date’] ?? new DateTime(); So, instead…
Leave a CommentTag: PHP 7.4
Arrow functions also called “short closures”. We can always access the parent scope, there’s no need for the use keyword. Here is a simple example…
Leave a CommentPHP 7.4 allows for underscores to be used to visually separate numeric values. It looks like this: $unformattedNumber = 123456789.78; $formattedNumber = 123_456_789.78; The underscores…
Leave a Comment