Tagged articles

PHP

3032 articles · Page 24 of 31
58 Tech
58 Tech
May 21, 2021 · Backend Development

Designing High‑Concurrency Systems with PHP Object Pooling and Swoole IPC

The article explains the core idea of pooling to trade space for time, analyzes the shortcomings of in‑process connection pools in PHP‑FPM, proposes long‑connection and cross‑process pooling solutions using Swoole’s IPC mechanisms, and demonstrates significant CPU and latency improvements in a real‑world high‑concurrency backend.

Connection PoolingIPCPHP
0 likes · 9 min read
Designing High‑Concurrency Systems with PHP Object Pooling and Swoole IPC
php Courses
php Courses
May 21, 2021 · Backend Development

Using Named Parameters and Match Expressions in PHP 8

This article explains PHP 8's named parameters, how they allow flexible argument ordering, skipping defaults, variadic usage, and demonstrates the new match expression with strict typing and constructor property promotion examples.

PHPbackendmatch expression
0 likes · 3 min read
Using Named Parameters and Match Expressions in PHP 8
Laravel Tech Community
Laravel Tech Community
May 17, 2021 · Backend Development

hash_update() – Adding Data to an Active Hash Context

hash_update() is a PHP function that appends a string of data to an active hash computation context created by hash_init(), takes a resource context and a string data as parameters, and returns TRUE upon successful update of the hash digest.

HashPHPSecurity
0 likes · 1 min read
hash_update() – Adding Data to an Active Hash Context
Laravel Tech Community
Laravel Tech Community
May 14, 2021 · Backend Development

PHP hash_init: Initialize Incremental Hashing Context

The article explains PHP's hash_init function, detailing its purpose to initialize an incremental hashing context, describing its parameters (algorithm name, options, key), return value, and provides a complete example demonstrating how to compute an MD5 hash using hash_update and hash_final.

HashPHPincremental hashing
0 likes · 2 min read
PHP hash_init: Initialize Incremental Hashing Context
Didi Tech
Didi Tech
May 14, 2021 · Backend Development

Bay Flow Platform: Service‑Side API Architecture and Evolution at DiDi

DiDi’s Bay Flow platform transforms its service‑side API into a configurable, layered “travel middle‑platform” that routes front‑end requests through a flow layer and reusable ability components, using the Dukang framework’s transports, steps, and factors to support dozens of ride‑hailing categories across PHP and Go while ensuring isolation and high reuse.

Dukang frameworkPHPPlatform design
0 likes · 15 min read
Bay Flow Platform: Service‑Side API Architecture and Evolution at DiDi
php Courses
php Courses
May 12, 2021 · Backend Development

Implementing Direct OSS Upload Signature in PHP

This tutorial explains how to create a lightweight PHP class for generating OSS direct‑upload signatures, describes the advantages of client‑side uploads without server bandwidth, provides the full source code, and highlights common pitfalls such as bucketHost configuration and policy newline handling.

OSSPHPSignature
0 likes · 3 min read
Implementing Direct OSS Upload Signature in PHP
Laravel Tech Community
Laravel Tech Community
May 10, 2021 · Backend Development

Using hash_file() to Generate a File Hash in PHP

This article explains PHP's hash_file() function, its parameters, return values, security use cases, and provides a complete example demonstrating how to compute an MD5 hash of a file, including code snippets and expected output.

File HashingPHPSecurity
0 likes · 3 min read
Using hash_file() to Generate a File Hash in PHP
Laravel Tech Community
Laravel Tech Community
May 10, 2021 · Backend Development

Laravel Performance Optimization: Best Practices and Tuning Techniques

This article presents a comprehensive guide to improving Laravel application performance by covering configuration caching, route caching, class map optimization, autoload optimization, session storage with Memcached, professional cache drivers, database query tuning, dataset caching, JIT compilers, and front‑end asset bundling.

PHPbackendcaching
0 likes · 7 min read
Laravel Performance Optimization: Best Practices and Tuning Techniques
Laravel Tech Community
Laravel Tech Community
May 8, 2021 · Backend Development

hash_copy() – Copying a Hash Context in PHP

The article explains PHP’s hash_copy() function, detailing its purpose of duplicating a hash context, the required $context parameter, the returned resource, and provides a complete example with code and expected output for demonstration.

HashPHPhash_copy
0 likes · 2 min read
hash_copy() – Copying a Hash Context in PHP
php Courses
php Courses
May 8, 2021 · Backend Development

Efficient CSV Export in PHP for Large Datasets

This article explains how to efficiently export large datasets to CSV files using PHP, describing the CSV format, why a simple streaming approach outperforms PHPExcel, performance expectations for 200,000 rows, and provides a complete PHP function that handles encoding, buffering, and memory‑friendly output.

CSVData ExportPHP
0 likes · 3 min read
Efficient CSV Export in PHP for Large Datasets
Laravel Tech Community
Laravel Tech Community
Apr 27, 2021 · Backend Development

zip_entry_close – Close a ZIP Directory Entry (PHP)

The PHP function zip_entry_close closes a previously opened ZIP directory entry, takes a zip entry resource as its sole argument, and returns TRUE on success or FALSE on failure, providing a simple way to release resources when working with ZIP archives.

File HandlingPHP
0 likes · 1 min read
zip_entry_close – Close a ZIP Directory Entry (PHP)
Efficient Ops
Efficient Ops
Apr 26, 2021 · Information Security

Deploying WAF-FLE: A Step‑by‑Step Guide to Managing ModSecurity Logs

This article walks you through installing and configuring the open‑source WAF‑FLE console—written in PHP—to collect, search, and visualize ModSecurity logs on Apache or Nginx, covering environment setup, database creation, sensor configuration, and troubleshooting common integration issues.

Log analysisModSecurityPHP
0 likes · 8 min read
Deploying WAF-FLE: A Step‑by‑Step Guide to Managing ModSecurity Logs
php Courses
php Courses
Apr 25, 2021 · Backend Development

Using PHP extract() to Convert Array Elements into Variables

This article explains the PHP extract() function, its syntax, parameters, return value, and provides two practical code examples showing how to turn associative array entries into individual variables with optional prefix handling.

ExtractPHPbackend
0 likes · 4 min read
Using PHP extract() to Convert Array Elements into Variables
php Courses
php Courses
Apr 25, 2021 · Backend Development

Using PHP list() to Assign Array Values to Variables

This article explains how PHP's list() function can assign values from an indexed array to multiple variables, compares it with extract(), and provides four code examples illustrating full assignment, skipping elements, selecting a single element, and the limitation with strings.

PHPbackendlist
0 likes · 3 min read
Using PHP list() to Assign Array Values to Variables
Laravel Tech Community
Laravel Tech Community
Apr 23, 2021 · Backend Development

Common Laravel and PHP Interview Questions and Answers

This article compiles frequently asked Laravel and PHP interview questions, providing concise explanations of core concepts such as the framework's architecture, routing, middleware, Eloquent ORM, service container, authentication, authorization, testing tools, and deployment practices, useful for both beginners and experienced candidates.

EloquentInterviewPHP
0 likes · 23 min read
Common Laravel and PHP Interview Questions and Answers
php Courses
php Courses
Apr 23, 2021 · Backend Development

Converting Decimal Numbers to Binary in PHP with decbin()

This article explains how to use PHP's built‑in decbin() function to convert decimal integers into their binary string representation, covering the function syntax, parameter details, return limits, and providing a clear code example with expected output.

ConversionDecimalPHP
0 likes · 1 min read
Converting Decimal Numbers to Binary in PHP with decbin()
php Courses
php Courses
Apr 23, 2021 · Backend Development

How to Install and Configure YASD for PHP Debugging with PhpStorm

This guide walks through installing the YASD debugging extension, adding the necessary php.ini settings, configuring PhpStorm's debug port and server path mapping, and running a PHP project (e.g., Hyperf) with breakpoints to enable remote debugging via a browser.

PHPbackendyasd
0 likes · 2 min read
How to Install and Configure YASD for PHP Debugging with PhpStorm
Laravel Tech Community
Laravel Tech Community
Apr 22, 2021 · Backend Development

zip_close() – Close a ZIP Archive File (PHP)

The PHP function zip_close() terminates a ZIP archive opened with zip_open(), taking the ZIP resource as its sole argument, performs no return value, and is essential for properly releasing file handles in backend development.

PHPbackend developmentzip_close
0 likes · 1 min read
zip_close() – Close a ZIP Archive File (PHP)
php Courses
php Courses
Apr 22, 2021 · Backend Development

Comparing Three PHP Methods to Multiply an Integer by 1000: String Concatenation, Direct Multiplication, and 1024‑Minus‑24 Approximation

This article examines three ways to enlarge a positive integer by a factor of one thousand in PHP—concatenating "000", multiplying by 1000, and using the expression X*1024‑X*24—benchmarks each method with ten million iterations, analyses the performance results, and discusses why the binary‑based formula may be slower than direct multiplication.

PHPPerformancebackend
0 likes · 6 min read
Comparing Three PHP Methods to Multiply an Integer by 1000: String Concatenation, Direct Multiplication, and 1024‑Minus‑24 Approximation
php Courses
php Courses
Apr 22, 2021 · Backend Development

How to Use PHP's array_keys() Function to Retrieve Array Keys

This article explains PHP's array_keys() function, detailing its syntax, parameters, return values, and demonstrating three practical examples that show how to retrieve array keys with optional search values and strict comparison.

PHParray_keysbackend
0 likes · 3 min read
How to Use PHP's array_keys() Function to Retrieve Array Keys
Laravel Tech Community
Laravel Tech Community
Apr 20, 2021 · Backend Development

PHP zip_open() – Open a ZIP Archive File

The article explains PHP's zip_open() function, showing its syntax, describing how it opens a ZIP archive for reading, detailing the required filename parameter, and outlining the return values including a resource handle on success or an error code on failure.

File HandlingPHPzip_open
0 likes · 1 min read
PHP zip_open() – Open a ZIP Archive File
php Courses
php Courses
Apr 19, 2021 · Backend Development

Reading Files in PHP: fread vs file_get_contents

This article explains how to read files in PHP using the two functions fread and file_get_contents, compares their syntax, parameters, return values, and shows practical code examples illustrating their differences and when to use each method.

File HandlingPHPbackend
0 likes · 3 min read
Reading Files in PHP: fread vs file_get_contents
Laravel Tech Community
Laravel Tech Community
Apr 18, 2021 · Backend Development

readline_clear_history() – Clear Command Line History in PHP

The PHP function readline_clear_history() removes the entire command line history, returning TRUE on success and FALSE on failure, providing a simple way to clear stored input lines during interactive sessions and can be used in scripts that require privacy of entered commands.

PHPcommand-linehistory
0 likes · 1 min read
readline_clear_history() – Clear Command Line History in PHP
Laravel Tech Community
Laravel Tech Community
Apr 11, 2021 · Backend Development

How to Use PHP’s readline_write_history to Save Command History

This guide explains the PHP function readline_write_history, showing how it writes command-line history to a file, detailing the required filename parameter and the boolean return values indicating success or failure, enabling developers to persist interactive shell sessions programmatically.

FunctionPHPbackend
0 likes · 1 min read
How to Use PHP’s readline_write_history to Save Command History
Laravel Tech Community
Laravel Tech Community
Apr 10, 2021 · Backend Development

readline_redisplay(): Redraw Display Area

readline_redisplay() is a PHP function that forces the readline interface to redraw the display area, takes no arguments, provides no return value, and is part of the readline extension used to refresh the user’s input line after external changes.

DisplayPHPreadline
0 likes · 1 min read
readline_redisplay(): Redraw Display Area
php Courses
php Courses
Apr 8, 2021 · Backend Development

Key PHP Interview Topics: HTTP Status Codes, Pass‑by‑Value/Reference, Design Patterns, XSS, CGI/FastCGI/PHP‑FPM, MVC, Garbage Collection, CLI Lifecycle, Memory Management, Arrays, Dependency Injection, OOP

This article summarizes essential PHP interview knowledge, covering HTTP status codes, value vs. reference passing, major design patterns, XSS mitigation, the CGI/FastCGI/PHP‑FPM architecture, MVC, garbage collection, CLI lifecycle, memory allocation, array implementation, dependency injection, and core object‑oriented principles.

PHPPerformancearchitecture
0 likes · 10 min read
Key PHP Interview Topics: HTTP Status Codes, Pass‑by‑Value/Reference, Design Patterns, XSS, CGI/FastCGI/PHP‑FPM, MVC, Garbage Collection, CLI Lifecycle, Memory Management, Arrays, Dependency Injection, OOP
php Courses
php Courses
Apr 8, 2021 · Backend Development

Using ThinkPHP6 Collection Methods to Process Database Query Results

The article explains how ThinkPHP6 returns query results as a Collection object, introduces its useful methods such as toArray and isEmpty, and provides a PHP code example demonstrating how to check for empty results and convert the collection to an array.

CollectionDatabasePHP
0 likes · 2 min read
Using ThinkPHP6 Collection Methods to Process Database Query Results
php Courses
php Courses
Apr 2, 2021 · Backend Development

Implementing Ping Using ICMP Raw Sockets in PHP

This tutorial explains how to use PHP's raw socket functions to construct and send an ICMP echo request packet, calculate its checksum, receive the reply, and wrap the logic into a reusable ping($host, $retry) function for backend network diagnostics.

ICMPPHPbackend
0 likes · 6 min read
Implementing Ping Using ICMP Raw Sockets in PHP
php Courses
php Courses
Mar 30, 2021 · Backend Development

Using PHP array_diff_assoc() to Compare Arrays and Find Differences

This article explains the PHP function array_diff_assoc(), its syntax, parameters, and provides code examples demonstrating how to compare arrays by keys and values to obtain the difference, along with a practical use case for detecting changes in form data during web development.

PHPbackenddiff
0 likes · 2 min read
Using PHP array_diff_assoc() to Compare Arrays and Find Differences
Laravel Tech Community
Laravel Tech Community
Mar 29, 2021 · Backend Development

zip_entry_name – Retrieve the Name of a ZIP Archive Entry (PHP)

This article explains the PHP function zip_entry_name, which returns the name of a directory entry within a ZIP archive, details its parameter $zip_entry, describes the return value, and provides a complete example demonstrating how to open a ZIP file, iterate entries, output their names, and close the archive.

PHPbackendzip_entry_name
0 likes · 1 min read
zip_entry_name – Retrieve the Name of a ZIP Archive Entry (PHP)
Laravel Tech Community
Laravel Tech Community
Mar 27, 2021 · Backend Development

PHP zip_entry_open: Opening a ZIP Directory Entry for Reading

This article explains the PHP function zip_entry_open, which opens a directory entry inside a ZIP archive for reading, details its parameters and return values, and provides a complete example demonstrating how to iterate through entries and display their names.

PHPbackendzip_entry_open
0 likes · 2 min read
PHP zip_entry_open: Opening a ZIP Directory Entry for Reading
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Mar 26, 2021 · Fundamentals

Design Patterns and SOLID Principles for Building a Message Sending Service

This article explains how to apply classic design patterns and the six SOLID principles—Liskov Substitution, Single Responsibility, Dependency Inversion, Interface Segregation, Law of Demeter, and Open‑Closed—to design a maintainable, extensible message‑sending system with task scheduling and dynamic provider configuration.

Design PatternsPHPSOLID
0 likes · 17 min read
Design Patterns and SOLID Principles for Building a Message Sending Service
Laravel Tech Community
Laravel Tech Community
Mar 24, 2021 · Backend Development

How to Open and Read ZIP Archives in PHP with zip_open

This guide explains the PHP zip_open() function, detailing its purpose, required filename parameter, return values, and provides a clear code example showing how to open a ZIP file, read its entries, and close the archive safely.

File HandlingPHPbackend
0 likes · 1 min read
How to Open and Read ZIP Archives in PHP with zip_open
php Courses
php Courses
Mar 24, 2021 · Backend Development

Comprehensive Guide to PHP Array Functions

This tutorial presents a thorough overview of PHP array functions, explaining key‑value operations, creation and splitting utilities, sorting techniques, and set operations such as differences and intersections, while providing clear code examples for each function.

PHPbackendtutorial
0 likes · 10 min read
Comprehensive Guide to PHP Array Functions
php Courses
php Courses
Mar 23, 2021 · Backend Development

Removing Empty Elements from a PHP Array Using foreach and array_filter

This article explains two PHP techniques for removing empty or falsy elements from an array: a straightforward foreach loop that unsets unwanted values and the more efficient array_filter() function with optional callbacks and flags, including code examples and the resulting output.

PHParray_filterbackend
0 likes · 3 min read
Removing Empty Elements from a PHP Array Using foreach and array_filter
php Courses
php Courses
Mar 19, 2021 · Backend Development

Understanding PDOStatement::fetch() Fetch Styles in PHP

This article explains the PDOStatement::fetch() method in PHP, detailing the available fetch style constants, their effects on result set formatting, and shows how to configure the statement to return only associative arrays for cleaner data handling.

DatabaseFetchModePDO
0 likes · 3 min read
Understanding PDOStatement::fetch() Fetch Styles in PHP
php Courses
php Courses
Mar 12, 2021 · Backend Development

Using Multiple where Clauses in Laravel for Multi-Field Search

This article demonstrates how to perform multi‑field searches in Laravel by chaining multiple where clauses with closure callbacks, showing example code that conditionally filters by username and hospital ID based on request parameters.

DatabaseMultiple WherePHP
0 likes · 2 min read
Using Multiple where Clauses in Laravel for Multi-Field Search
Laravel Tech Community
Laravel Tech Community
Mar 10, 2021 · Backend Development

PHP readdir() Function: Reading Directory Entries

The PHP readdir() function reads the next entry from an opened directory handle, returning the filename in filesystem order, with details on its parameters, return values, and example code demonstrating correct and incorrect directory traversal techniques.

PHPdirectoryfilesystem
0 likes · 2 min read
PHP readdir() Function: Reading Directory Entries
Laravel Tech Community
Laravel Tech Community
Mar 9, 2021 · Backend Development

PHP opendir() Function – Opening a Directory Handle

This article explains PHP's opendir() function, detailing its purpose of opening a directory handle, the required path and optional context parameters, the return values, and provides a complete code example that reads and displays filenames and their types within a specified directory.

PHPdirectoryfilesystem
0 likes · 2 min read
PHP opendir() Function – Opening a Directory Handle
php Courses
php Courses
Mar 9, 2021 · Backend Development

Understanding Method and Property Overriding in PHP Classes

The article explains PHP class inheritance, detailing how public and protected properties and methods can be overridden in child classes while private members remain unaffected, and demonstrates correct overriding practices, parameter matching, and using the parent keyword with clear code examples.

PHPbackendmethod overriding
0 likes · 6 min read
Understanding Method and Property Overriding in PHP Classes
php Courses
php Courses
Mar 9, 2021 · Backend Development

How to Install and Configure Laravel IDE Helper with Composer

This guide explains how to install the Barryvdh Laravel IDE Helper package via Composer, add its service provider, configure post‑update scripts, publish configuration files, and generate helper documentation, enabling improved IDE autocompletion for Laravel projects.

AutocompletionIDE HelperPHP
0 likes · 2 min read
How to Install and Configure Laravel IDE Helper with Composer
Laravel Tech Community
Laravel Tech Community
Mar 8, 2021 · Backend Development

PHP getcwd() – Retrieve Current Working Directory

This article explains the PHP getcwd() function, which retrieves the current working directory, details its return values, provides a sample script demonstrating its usage with chdir(), and shows the expected output paths.

PHPdirectoryfilesystem
0 likes · 1 min read
PHP getcwd() – Retrieve Current Working Directory
php Courses
php Courses
Mar 8, 2021 · Backend Development

Understanding PHP Traits: Definition, Syntax, and Usage

This article explains PHP traits—a code‑reuse mechanism for single‑inheritance languages—covering their definition, basic syntax, how to use them with the use keyword, resolving property and method conflicts, visibility adjustments, and abstract method support, all illustrated with clear examples.

PHPTraitscode reuse
0 likes · 7 min read
Understanding PHP Traits: Definition, Syntax, and Usage
php Courses
php Courses
Mar 8, 2021 · Databases

Using PDO for Database Write and Read Operations in PHP

This article explains how to manage database write and query operations in PHP using PDO, covering initialization, error handling, and providing complete code examples for inserting and selecting records.

CRUDDatabasePDO
0 likes · 4 min read
Using PDO for Database Write and Read Operations in PHP
System Architect Go
System Architect Go
Mar 8, 2021 · Information Security

Insecure Deserialization

This article explains what insecure deserialization is, why it leads to high‑severity attacks, demonstrates typical PHP, Ruby, and Java examples, and provides practical techniques for identifying, exploiting, and mitigating unsafe deserialization vulnerabilities.

DeserializationJavaPHP
0 likes · 27 min read
Insecure Deserialization
Laravel Tech Community
Laravel Tech Community
Mar 7, 2021 · Backend Development

PHP dir() Function Returns a Directory Class Instance

The PHP dir() function opens a directory and returns a Directory class instance, accepting a directory path and an optional context resource, with detailed parameter descriptions, return values, and a complete example demonstrating how to read entries and close the handle.

PHPbackendfile system
0 likes · 2 min read
PHP dir() Function Returns a Directory Class Instance
Laravel Tech Community
Laravel Tech Community
Mar 5, 2021 · Backend Development

Laravel‑KindEditor: Installation, Configuration, and Usage Guide

This article provides a step‑by‑step tutorial for installing the Laravel‑KindEditor package, configuring storage drivers, adding the service provider, publishing assets, setting up the editor in Blade templates, and handling image upload responses with example code snippets for developers.

HTML editorInstallationKindEditor
0 likes · 4 min read
Laravel‑KindEditor: Installation, Configuration, and Usage Guide
php Courses
php Courses
Mar 5, 2021 · Backend Development

Integrating Whoops Error Handler into ThinkPHP6

This tutorial explains how to install the Whoops library via Composer and configure ThinkPHP6’s ExceptionHandle to replace the default error page with Whoops’ detailed, user‑friendly exception view, including code examples and a final verification.

ExceptionPHPThinkPHP6
0 likes · 3 min read
Integrating Whoops Error Handler into ThinkPHP6
Laravel Tech Community
Laravel Tech Community
Mar 1, 2021 · Backend Development

PHP srand() – Seeding the Random Number Generator

This article explains PHP's srand() function, detailing its purpose of seeding the random number generator, optional seed parameter, lack of return value, and provides a complete example showing how to generate a seed from microtime and produce random numbers.

PHPrandomseed
0 likes · 1 min read
PHP srand() – Seeding the Random Number Generator
php Courses
php Courses
Mar 1, 2021 · Backend Development

Creating and Using a Local Composer Package in PHP

This tutorial demonstrates how to set up a local Composer package in PHP by creating project directories, configuring composer.json files for autoload and repositories, requiring the package, and testing it with a sample index.php, illustrated with command snippets and screenshots.

Dependency ManagementPHPPackage Management
0 likes · 3 min read
Creating and Using a Local Composer Package in PHP
php Courses
php Courses
Mar 1, 2021 · Backend Development

ThinkPHP Framework Execution Process Overview

This article outlines the ThinkPHP framework’s execution flow, detailing the sequence from index.php entry through configuration loading, application generation, class loading, controller action execution, and template rendering, and highlights key classes such as Think\Hook and Think\Behavior.

PHPThinkPHPbackend
0 likes · 2 min read
ThinkPHP Framework Execution Process Overview
php Courses
php Courses
Mar 1, 2021 · Backend Development

Implementing API Rate Limiting with Redis in PHP

This article explains how to implement API request frequency control in PHP using Redis, detailing a function that tracks per‑user request counts within a configurable time window, removes outdated entries, and returns appropriate responses when the limit is exceeded.

APIPHPRedis
0 likes · 3 min read
Implementing API Rate Limiting with Redis in PHP
php Courses
php Courses
Feb 28, 2021 · Backend Development

Understanding PHP's pcntl_fork(): Process Creation and Fork Behavior

This article explains PHP's pcntl_fork() function, how it creates child processes on Linux, the return values in parent and child, code examples demonstrating variable copying and process multiplication, and clarifies why a loop with three forks results in seven child processes.

PHPforklinux
0 likes · 3 min read
Understanding PHP's pcntl_fork(): Process Creation and Fork Behavior
php Courses
php Courses
Feb 24, 2021 · Backend Development

Converting Arrays to Tree Structures and Back in PHP

This article demonstrates how to transform a flat array into a hierarchical tree structure and reverse the process in PHP, providing step‑by‑step code examples for building a tree using parent‑child relationships and converting the tree back into a flat list.

Array to TreePHPRecursive Function
0 likes · 3 min read
Converting Arrays to Tree Structures and Back in PHP
Laravel Tech Community
Laravel Tech Community
Feb 23, 2021 · Backend Development

PHP rand() Function – Generating Random Integers

The PHP rand() function returns a pseudo‑random integer within a given range, defaulting to 0 through getrandmax() when no parameters are supplied, and includes details on its parameters, return value, and usage examples.

FunctionPHPbackend
0 likes · 2 min read
PHP rand() Function – Generating Random Integers
php Courses
php Courses
Feb 22, 2021 · Backend Development

Customizing Laravel Pagination for Pseudo‑Static URLs

This guide explains how to override Laravel's built‑in pagination component to generate clean pseudo‑static URLs by creating a custom LengthAwarePaginator, rewriting its url method, and providing a staticPaginate scope for selective use.

PHPPaginationPseudo-Static
0 likes · 7 min read
Customizing Laravel Pagination for Pseudo‑Static URLs
Laravel Tech Community
Laravel Tech Community
Feb 21, 2021 · Backend Development

PHP pow() Function – Exponential Expression

The PHP pow() function returns the base raised to the exponent, optionally yielding an integer, and its usage is illustrated with examples showing integer, zero, negative, and floating‑point exponent cases, including version‑specific behavior for PHP 4.0.6 and later.

FunctionPHPPoW
0 likes · 2 min read
PHP pow() Function – Exponential Expression
Laravel Tech Community
Laravel Tech Community
Feb 21, 2021 · Backend Development

PHP pi() Function – Returns Approximate Value of π

The PHP pi() function returns the approximate value of the mathematical constant π as a float, with precision set by the php.ini precision directive (default 14), and can also be accessed via the predefined M_PI constant, illustrated with a simple code example.

FunctionMathematicsPHP
0 likes · 1 min read
PHP pi() Function – Returns Approximate Value of π