Get "PHP 8 in a Nutshell" (Now with PHP 8.5)
Amit Merchant
Amit Merchant Verified ($30/year for the domain)

A blog on PHP, JavaScript, and more

  • Articles
  • Snippets
  • Projects
  • Uses
  • Stats
  • About
  • Search
Laravel PHP JavaScript Git React

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:

Read More PHP

Explicitly marking subclass methods as "overrides" in PHP 8.3

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.

Read More PHP

Pre-defined Absolute and Relative Sized Fonts in CSS

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.

Read More CSS

JavaScript Playground in Your Browser

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?

Read More JavaScript

Git Uncommit

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.

Read More Git

Benchmarking a callback and get its return value in Laravel

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.

Read More Laravel

Trying VS Code themes without installing them

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.

Read More VS Code

A practical example of using Fibers in PHP

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.

Read More PHP

Catppuccin — My new favorite VS Code theme

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.

Read More VS Code

A better setTimeout() in JavaScript

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.

Read More JavaScript
Previous 1 ... 17 18 19 ... 78 Next

Download my eBook

NOW AVAILABLE PHP 8.5

Newsletter

Subscribe

Follow me everywhere

My Tiny YouTube Channel ➔ YouTube Icon

Recently Published

  • Real-world examples of using Laravel AI SDK NEW

  • Add UI sounds in your web apps in a heartbeat

  • SVG Filters are just amazing!

  • The new clamp() function in PHP 8.6

  • Partial Function Application is coming in PHP 8.6

Top Categories

Laravel PHP Miscellaneous JavaScript CSS VS Code Git React Tools ➔
Home About Contact Categories Links Guestbook
Previous page Next page
Amit Merchant
This is HAL 9000 from 2001: A Space Odyssey
About Contact Archive Tips Guestbook
One of my favorite flowers from Himalayas—Rhododendron
Copyright © 2026 — Amit Merchant