Get "PHP 8 in a Nuthshell" (Now with PHP 8.4)
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

Centering content vertically with one line of CSS

May 28, 2024 — Generally, when you want to center content vertically, you may reach for Flexbox or Grid. So, for instance, if you have a div with a height of 100px and you want to center its content vertically, you can do it with Flexbox like so.

Read More CSS

A little DevTools snippet to check broken links on a webpage

May 26, 2024 — Broken links, also known as dead links, are hyperlinks on a webpage that no longer lead to the intended destination. When a user clicks on a broken link, they typically encounter a 404 error message, indicating that the webpage cannot be found.

Read More JavaScript

A browser to take cleaner screenshots of websites

May 24, 2024 — Many times when sharing screenshots of websites, I would like to show the website loaded in the browser but at the same time, I don’t want to show all the clutter that comes with the browser like the toolbar, tabs, extensions, etc.

Read More Tools

A few new array functions are making their way into PHP 8.4

May 20, 2024 — PHP 8.4 is still under development and has a bunch of new features and improvements under its belt so far. New features keep on appearing and one of them recently surfaced is the addition of new array methods.

Read More PHP

Cloning queries in Laravel

May 17, 2024 — Reusing database queries is a common practice to maintain clean, DRY (Don’t Repeat Yourself) code and ensure consistency across your application.

Read More Laravel

Ignore and acknowledge class attribute on elements in CSS

May 16, 2024 — Sometimes, when working with some common elements, for instance, <ul>, <a>, or <div>, you might add the class attribute to some of them and then use that class to style them.

Read More CSS

The new Quick Search Text in VS Code is Gooood!

May 15, 2024 — When you want to search for something across your project in VS Code, the usual way is to open the Search panel and type in the search term, and VS Code will show all the instances of the term in your project.

Read More VS Code

Scraping Google Web Search using ScraperAPI in PHP

May 10, 2024 — Scraping data on the web is a tiresome process when you do things manually. For instance, if you happen to do it using PHP, you need to do the following steps.

Read More PHP

Return HTTP response as a collection (Effectively) in Laravel

May 8, 2024 — If you are using Laravel’s HTTP client to call a third-party API, you might want to use the response as a collection to manipulate the data.

Read More Laravel

Property hooks are coming in PHP 8.4

April 17, 2024 — Accessing or setting the value of a class property is comman task in object oriented programming. There are a few ways to do this in PHP. Let’s discuss them first.

Read More PHP
Previous 1 ... 7 8 9 ... 76 Next

Download my eBook

NOW AVAILABLE PHP 8.4

Newsletter

Subscribe

Follow me everywhere

My Tiny YouTube Channel ➔ YouTube Icon

Recently Published

  • Stop Ignoring Important Returns with PHP 8.5’s `#[\NoDiscard]` Attribute NEW

  • Innovative Solutions for eCommerce — How Shopify Headless Works

  • The best paid SVG icon resources that money can buy

  • The new if() function in CSS has landed in the latest Chrome

  • The pipe operator is coming to PHP 8.5

Top Categories

Laravel PHP JavaScript Miscellaneous CSS VS Code Git React Tools ➔
Home About Contact Categories Links Guestbook
Previous page Next page
Amit Merchant
About Contact Archive Tips Guestbook
One of my favorite flowers from Himalayas—Rhododendron
Copyright © 2025 — Amit Merchant