Tagged articles
17 articles
Page 1 of 1
php Courses
php Courses
Feb 12, 2025 · Backend Development

Handling Division by Zero Errors in PHP: Differences Between PHP 7 and PHP 8 and Best Practices

This article explains how PHP 7 and PHP 8 handle division‑by‑zero errors, outlines common causes of zero‑division, and presents six practical techniques—including input validation, conditional checks, ternary operators, custom error handlers, try‑catch blocks, and avoiding the @ operator—supported by clear code examples and a real‑world financial‑app case study.

BackendExceptionPHP8
0 likes · 6 min read
Handling Division by Zero Errors in PHP: Differences Between PHP 7 and PHP 8 and Best Practices
php Courses
php Courses
Apr 18, 2024 · Backend Development

Top PHP 7 Interview Questions and Answers for 2024

This article presents eight essential PHP 7 interview questions covering core feature innovations, performance improvements, scalar type declarations, null coalescing, the Throwable interface, the spaceship operator, anonymous classes, and enhanced error handling, with concise English explanations to help developers prepare for 2024 interviews.

BackendPHPinterview
0 likes · 7 min read
Top PHP 7 Interview Questions and Answers for 2024
php Courses
php Courses
Oct 18, 2023 · Backend Development

Using PHP7 Type Declarations to Improve Code Readability

This article explains PHP7's strong typing features—including parameter, return, and nullable type declarations—through clear code examples, demonstrating how they enhance readability, reduce errors, and improve maintainability for developers working on server-side applications.

Type Declarationscode readabilitynullable types
0 likes · 5 min read
Using PHP7 Type Declarations to Improve Code Readability
php Courses
php Courses
Aug 7, 2022 · Backend Development

Key Features and Architecture of PHP 7 and PHP 8

This article outlines the major new features of PHP 8 and PHP 7, explains why PHP 7 outperforms PHP 5, describes the execution flow, web‑request lifecycle, underlying architecture, data structures, garbage‑collection mechanism, and the PHP‑FPM master‑worker model with optimization tips.

Backend DevelopmentGarbage CollectionLifecycle
0 likes · 6 min read
Key Features and Architecture of PHP 7 and PHP 8
php Courses
php Courses
May 28, 2021 · Backend Development

Resolving the PHP Type‑Hint Error: Argument 1 Must Be an Instance of int

This article explains a confusing PHP error where a method expects an instance of int but receives an integer, analyzes three common causes—including an incorrect use statement, outdated PHP version, and unnecessary type hint—and provides concise solutions for each.

BackendPHPphp7
0 likes · 2 min read
Resolving the PHP Type‑Hint Error: Argument 1 Must Be an Instance of int
php Courses
php Courses
Feb 8, 2021 · Backend Development

How to Obtain Millisecond‑Precision Timestamps in PHP: 13‑Digit, Float, and Custom 14‑Digit Formats

This article demonstrates three PHP techniques for obtaining millisecond‑precision timestamps—13‑digit integer, floating‑point value, and a custom 14‑digit format—providing full code examples and usage illustrations. It also shows how to integrate the timestamp into request data structures for payment APIs.

millisecondphp7timestamp
0 likes · 3 min read
How to Obtain Millisecond‑Precision Timestamps in PHP: 13‑Digit, Float, and Custom 14‑Digit Formats
21CTO
21CTO
Aug 2, 2019 · Backend Development

Is PHP Really Dead? Unpacking the Myths and Market Realities

This article examines recent rumors about PHP’s demise, reviews Zend’s leadership changes, presents market‑share data, and argues why PHP remains a viable choice for startups and small‑to‑medium enterprises despite criticism.

Market SharePHPWeb Development
0 likes · 8 min read
Is PHP Really Dead? Unpacking the Myths and Market Realities
21CTO
21CTO
Feb 28, 2018 · Backend Development

Why PHP Still Thrives in 2018: Essential Tools and Strategies for Modern Developers

This article examines PHP's enduring market share, highlights its practical design and powerful standard library, and outlines six key recommendations—including Composer, PHP 7, PSR standards, Swoole, Laravel, and Phar packaging—to help developers stay competitive in the evolving backend landscape.

BackendComposerLaravel
0 likes · 6 min read
Why PHP Still Thrives in 2018: Essential Tools and Strategies for Modern Developers
21CTO
21CTO
Feb 27, 2017 · Backend Development

Discover PHP7’s Powerful New Features: Namespaces, Traits, Generators, and More

PHP7 brings a host of performance improvements and new language features—including refined namespace usage, interfaces, traits, generators, closures, Zend OPcache, and a built‑in HTTP server—each illustrated with practical code examples and best‑practice recommendations for modern backend development.

Backend DevelopmentGeneratorsNamespaces
0 likes · 8 min read
Discover PHP7’s Powerful New Features: Namespaces, Traits, Generators, and More
Tencent Cloud Developer
Tencent Cloud Developer
Feb 15, 2017 · Backend Development

PHP7 Upgrade Practice for QQ Member Activity Platform (AMS)

The QQ Member Activity Platform upgraded its legacy PHP 5.2/Apache 2.0 stack to PHP 7.0 with Apache 2.4 through staged migrations, extensive extension refactoring, and rigorous debugging, ultimately achieving roughly double the request‑handling performance and significant hardware cost savings while maintaining service stability.

ApacheBackend DevelopmentExtension Development
0 likes · 23 min read
PHP7 Upgrade Practice for QQ Member Activity Platform (AMS)
Architecture Digest
Architecture Digest
Jun 3, 2016 · Backend Development

Upgrading QQ Membership Activity Management System (AMS) from PHP 5.2/Apache 2.0 to PHP 7 and Apache 2.4: Process, Risks, and Performance Gains

This article details the end‑to‑end migration of the QQ Membership Activity Management System from an outdated PHP 5.2/Apache 2.0 stack to PHP 7 and Apache 2.4, covering pre‑research on HHVM and JIT, architectural choices, upgrade risks, step‑by‑step implementation, debugging techniques, API changes, and the resulting performance improvements.

ApacheWebperformance
0 likes · 21 min read
Upgrading QQ Membership Activity Management System (AMS) from PHP 5.2/Apache 2.0 to PHP 7 and Apache 2.4: Process, Risks, and Performance Gains
21CTO
21CTO
Mar 16, 2016 · Backend Development

How Badoo Saved $1M by Migrating Hundreds of Servers to PHP 7

Badoo migrated its massive PHP codebase to PHP 7 across hundreds of servers, overcoming engine bugs, HHVM limitations, and extension incompatibilities, while revamping testing infrastructure and deployment processes, ultimately achieving up to 40% faster response times, eight‑fold memory reduction, and roughly one million dollars in cost savings.

BackendOpsmigration
0 likes · 22 min read
How Badoo Saved $1M by Migrating Hundreds of Servers to PHP 7
21CTO
21CTO
Jan 2, 2016 · Backend Development

Boost PHP7 Performance: 5 Essential Tweaks You Must Enable

This guide outlines five practical steps—enabling Zend Opcache, compiling with GCC 4.8+, activating HugePages, configuring Opcache file cache, and applying PGO—to extract the maximum speed from PHP 7 installations, especially for high‑traffic sites like WordPress.

OPcachePGOhugepages
0 likes · 5 min read
Boost PHP7 Performance: 5 Essential Tweaks You Must Enable
21CTO
21CTO
Sep 20, 2015 · Backend Development

What PHP7 Brings: New Features and Massive Performance Gains Explained

This article reviews PHP7’s major language enhancements, architectural changes, and benchmark results that demonstrate up to a 60% speed increase and a 2.7‑fold QPS boost for WordPress, providing developers with practical insights into adopting the new version.

New Featuresbackend-developmentperformance
0 likes · 16 min read
What PHP7 Brings: New Features and Massive Performance Gains Explained