PHP

PHP is a popular scripting language for web development. It can create dynamic and interactive web pages by running on the server and sending HTML to the browser. It is free, fast, and flexible,

Using cursor-based pagination in Laravel + Eloquent

Updated: February 24, 2024 By: Guest Contributor

Pagination is an essential part of any application that deals with large datasets. It optimizes the performance of your app by loading a small chunk of data at…

Pandas DataFrame.value_counts() method: Explained with examples

Updated: February 22, 2024 By: Guest Contributor

Introduction Pandas is an open-source data manipulation and analysis library for Python, offering data structures and operations for manipulating numerical tables and time series. Among its versatile functions,…

Constructor Property Promotion in PHP: Tutorial & Examples

Updated: February 22, 2024 By: Guest Contributor

Introduction One of the significant enhancements in PHP 8 is constructor property promotion. This feature aims to reduce boilerplate code associated with class property declaration and initialization in…

Union Types in PHP: A practical guide (5 examples)

Updated: February 22, 2024 By: Guest Contributor

Introduction In PHP, the concept of types is crucial for ensuring that variables and returns from functions behave as expected. PHP 8 introduced a remarkable feature that broadened…

Understanding mixed types in PHP (5 examples)

Updated: February 22, 2024 By: Guest Contributor

Overview Welcome to a comprehensive guide designed to help you understand mixed types in PHP. PHP, as a dynamically typed language, offers flexibility that can sometimes lead to…

PHP: How to implement type checking in a function (PHP 8+)

Updated: February 22, 2024 By: Guest Contributor

Introduction In modern software development, ensuring the correctness and reliability of code is paramount. PHP, a server-side scripting language, has made significant strides toward enhancing type safety with…

Symfony + Doctrine: Implementing cursor-based pagination

Updated: February 22, 2024 By: Guest Contributor

In a digital world where data grows exponentially, efficient data retrieval becomes imperative for application performance and user experience. Pagination is a common strategy to chunk down the…

Laravel + Eloquent: How to Group Data by Multiple Columns

Updated: February 22, 2024 By: Guest Contributor

Overview Laravel’s Eloquent ORM provides a fluent and convenient way to interact with your database. When it comes to retrieving and manipulating data, Eloquent offers various methods to…

PHP: How to convert CSV data to HTML tables

Updated: February 22, 2024 By: Guest Contributor

Introduction In the realm of data representation, the shift from plain text formats like CSV (Comma Separated Values) to more user-friendly and visually appealing formats such as HTML…

Using ‘never’ return type in PHP (PHP 8.1+)

Updated: February 20, 2024 By: Guest Contributor

Introduction PHP 8.1 introduced a new return type: never. This feature adds more expressiveness and robustness to PHP’s type system. The never return type indicates that a function…

1 2 3 95