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

Reduce array of objects to an object in JavaScript

May 17, 2022 — The other day when working with one of the applications, I needed to convert/reduce an array of objects to an object.

Read More JavaScript

Unpack arrays conditionally in PHP

May 16, 2022 — Array unpacking is a sleek way of assigning the value of array elements to variables in one shot like so.

Read More PHP

Useful GNOME extensions that I am using on my Ubuntu 22.04

May 11, 2022 — GNOME is the official desktop environment that is been shipped with Ubuntu desktop versions for quite some time now.

Read More Miscellaneous

Implementing Focused Reading Mode on My Blog

May 9, 2022 — The other day, I was scrolling through my Twitter feed and I saw this tweet from Paco where he implemented what he calls “fuzzy reading mode” on his blog.

Read More Miscellaneous

The new Arr::join() method in Laravel 9.x

May 7, 2022 — A while back, I have written an article on how to convert arrays to human-readable lists in JavaScript. It’s a built-in feature using the Intl.ListFormat object that lets you do that.

Read More Laravel

Boolean toggle using useReducer hook in React.js

May 3, 2022 — Toggles are an integral part of a web application. Toggles usually have two states. Most of the time these would be of type boolean.

Read More React

The new findOr method in Laravel 9.x

May 2, 2022 — A minor release for Laravel 9.x dropped a few days ago and among lots of new features and improvements, this release has introduced a new method called findOr in the Eloquent Builder and Relations.

Read More Laravel

Readonly classes in PHP 8.2

April 29, 2022 — When readonly properties were introduced in PHP 8.1, it has provided a legitimate way of making class properties truly “readonly”.

Read More PHP

Effectively rendering lists in React.js

April 27, 2022 — When you’re working on the frontend side of the things of a website, one of the most common tasks is to render lists from arrays/objects.

Read More React

Null and false can be used as stand-alone types in PHP 8.2

April 24, 2022 — The latest version of PHP, PHP 8.1, has been around for quite some time and it comes packed with some great new features and enhancements.

Read More PHP
Previous 1 ... 35 36 37 ... 78 Next

Download my eBook

NOW AVAILABLE PHP 8.5

Newsletter

Subscribe

Follow me everywhere

My Tiny YouTube Channel ➔ YouTube Icon

Recently Published

  • One CSS Property That Makes Numbers Look Instantly Better NEW

  • Real-world examples of using Laravel AI SDK

  • Add UI sounds in your web apps in a heartbeat

  • SVG Filters are just amazing!

  • The new clamp() function 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