Below you will find pages that utilize the taxonomy term “Php”
Posts
My Favorite Little Operator
Sometimes, there are little things that solve so much that we take for granted. There’s also things that solve so much that aren’t used as often.
Recently, I’ve been relying on ??, which is a very interesting operator called “null-coalescing operator”. A fairly seasoned programmer probably uses it very often and wouldn’t find this as fascinating as I did, but for me, it’s a game-changer.
Take this for instance:
const somevar = null; if (somevar === null) { console.