All the ways to handle null values in PHP
September 6, 2023 — Null is a special data type in PHP that represents a variable with no value. A variable is considered to be null if:
A blog on PHP, JavaScript, and more
September 6, 2023 — Null is a special data type in PHP that represents a variable with no value. A variable is considered to be null if:
September 5, 2023 — The #[\Override]
attribute is a new attribute that will be introduced in PHP 8.3. It will be used to mark a method as overriding a parent method.
September 4, 2023 — Today I learned about pre-defined absolute and relative font sizes that you can use in CSS apart from the usual px
, em
, rem
, vw
, vh
, etc. units.
September 1, 2023 — How many times have you wanted to do some quick prototyping in JavaScript or wanted to test out some code but didn’t want to go through the hassle of setting up a project?
August 29, 2023 — Here’s a handy little Git alias that you can use to undo your last commit. Thanks to Freek sharing this on X.
August 26, 2023 — You know Laravel always had the Illuminate\Support\Benchmark
helper function which you can use to benchmark a callback and print it. For instance, if you want to benchmark a callback function, here’s how you can do it.
August 22, 2023 — It wasn’t really possible in the older versions of VS Code but now, you can try out VS Code themes without installing them.
August 19, 2023 — Extending my previous article on the introduction to Fibers, in this article, we’re going to see a practical example of using Fibers in PHP which might help you understand the concept better.
August 17, 2023 — I don’t change my VS Code frequently. I quite like the Dracula Dark Vibrant theme and I’ve been using it for quite a while now.
August 16, 2023 — A pretty long ago, I covered how to handle multiple time intervals in JavaScript in this article. And that’s a good way to handle multiple intervals in JavaScript. In line with that, I recently stumbled upon a pretty interesting way to handle setTimeout()
in JavaScript in this tweet by Haz.