Tagged articles
3002 articles
Page 25 of 31
Laravel Tech Community
Laravel Tech Community
Jan 26, 2021 · Backend Development

hexdec() – Convert Hexadecimal Strings to Decimal in PHP

hexdec() is a PHP built‑in function that converts a hexadecimal string to its decimal value, ignoring any non‑hex characters, and returns the corresponding integer; the article explains its syntax, parameters, return value, and provides example code demonstrating conversions such as "See" and "a0".

BackendConversionPHP
0 likes · 2 min read
hexdec() – Convert Hexadecimal Strings to Decimal in PHP
php Courses
php Courses
Jan 26, 2021 · Backend Development

Understanding the ThinkPHP Db Class: Workflow and Core Methods

This article provides a detailed walkthrough of the ThinkPHP Db class, explaining its relationship with other core classes, the database configuration, and the step‑by‑step execution flow of queries, including magic methods, connection handling, and result retrieval.

BackendDBORM
0 likes · 8 min read
Understanding the ThinkPHP Db Class: Workflow and Core Methods
php Courses
php Courses
Jan 26, 2021 · Backend Development

Reading and Writing CSV Files in PHP

This article provides PHP code examples for reading data from a CSV file and writing data to a new CSV file, including handling of locale settings, skipping headers, constructing headers, and appending rows using built‑in functions such as fgetcsv, fopen, and fwrite.

BackendCSVFile I/O
0 likes · 2 min read
Reading and Writing CSV Files in PHP
php Courses
php Courses
Jan 25, 2021 · Backend Development

Deep Dive into ThinkPHP Model Implementation and Save Method Execution

This article provides a comprehensive, step‑by‑step analysis of ThinkPHP's Model class, illustrating how the framework organizes model files, utilizes traits and ArrayAccess, and executes the save method—including data validation, insert/update logic, and the underlying execute routine that interacts with the database via PDO.

BackendModelORM
0 likes · 9 min read
Deep Dive into ThinkPHP Model Implementation and Save Method Execution
php Courses
php Courses
Jan 22, 2021 · Backend Development

Laravel Eloquent Model Tips: Selecting Attributes, Cloning, Comparing, Refreshing, Updating Relations, Soft Deletes, and Change Detection

This article presents a collection of practical Laravel Eloquent model techniques, including selecting specific attributes with find, cloning models via replicate, comparing models with is, refreshing and reloading records, updating related models with push, customizing soft‑delete columns, and detecting attribute changes using getChanges, getDirty, and getOriginal.

BackendEloquentLaravel
0 likes · 5 min read
Laravel Eloquent Model Tips: Selecting Attributes, Cloning, Comparing, Refreshing, Updating Relations, Soft Deletes, and Change Detection
php Courses
php Courses
Jan 21, 2021 · Backend Development

Handling HTTP Requests and Input Retrieval in Laravel

This article explains how Laravel simplifies accessing request data by using the Illuminate\Http\Request instance, automatic controller injection, and various helper methods to obtain request methods, URLs, and input values, including full, partial, and boolean inputs.

HTTP requestInput HandlingLaravel
0 likes · 5 min read
Handling HTTP Requests and Input Retrieval in Laravel
Laravel Tech Community
Laravel Tech Community
Jan 20, 2021 · Backend Development

deg2rad() – Convert Degrees to Radians in PHP

The article explains PHP’s deg2rad() function, detailing its signature, parameter, return value, and provides example code that demonstrates converting 45 degrees to radians and verifying the result against the constant M_PI_4 in PHP.

BackendConversionPHP
0 likes · 1 min read
deg2rad() – Convert Degrees to Radians in PHP
Laravel Tech Community
Laravel Tech Community
Jan 19, 2021 · Backend Development

PHP decoct Function – Convert Decimal to Octal

This article explains the PHP decoct function, which returns the octal representation of a given decimal integer, details its parameter and return value, and provides example code demonstrating conversions such as 15 → 17 and 264 → 410.

BackendConversionPHP
0 likes · 2 min read
PHP decoct Function – Convert Decimal to Octal
Laravel Tech Community
Laravel Tech Community
Jan 17, 2021 · Backend Development

decbin() – Convert Decimal to Binary in PHP

The article explains PHP’s decbin() function, detailing its purpose of converting a decimal integer (0‑4294967295) to a 32‑bit binary string, describing its parameter and return value, and providing a complete code example with expected output.

BackendPHPbinary conversion
0 likes · 1 min read
decbin() – Convert Decimal to Binary in PHP
Laravel Tech Community
Laravel Tech Community
Jan 14, 2021 · Backend Development

PHP ceil() Function: Rounding Up to the Next Integer

This article explains PHP’s ceil() function, describing how it rounds a floating‑point number up to the smallest integer not less than the given value, details its parameter and return type, and provides example code with expected outputs.

BackendPHPRounding
0 likes · 2 min read
PHP ceil() Function: Rounding Up to the Next Integer
Laravel Tech Community
Laravel Tech Community
Jan 11, 2021 · Backend Development

PHP atanh() Function – Inverse Hyperbolic Tangent

The article explains PHP’s atanh() function, which computes the inverse hyperbolic tangent of a float argument, detailing its signature, parameter, return value, and providing sample code with expected outputs for various inputs.

BackendPHPatanh
0 likes · 1 min read
PHP atanh() Function – Inverse Hyperbolic Tangent
Laravel Tech Community
Laravel Tech Community
Jan 10, 2021 · Backend Development

Understanding PHP’s atan() Function: Usage, Parameters, and Examples

This article explains PHP’s atan() function, detailing its signature, parameter description, return value in radians, and provides multiple code examples demonstrating how different inputs produce corresponding inverse tangent results, including positive, negative, and large magnitude numbers, along with the exact numeric outputs.

PHPatanbackend-development
0 likes · 2 min read
Understanding PHP’s atan() Function: Usage, Parameters, and Examples
Laravel Tech Community
Laravel Tech Community
Jan 9, 2021 · Backend Development

Master PHP’s atan2() Function: Compute Angles with Two Arguments

This article explains PHP’s atan2() function, detailing its signature, parameter meanings, return value, and provides multiple code examples that demonstrate how different x‑and y‑coordinate pairs produce specific radian results, helping developers correctly compute angles in backend applications.

BackendPHPatan2
0 likes · 2 min read
Master PHP’s atan2() Function: Compute Angles with Two Arguments
Laravel Tech Community
Laravel Tech Community
Jan 6, 2021 · Backend Development

PHP acosh() Function – Inverse Hyperbolic Cosine

This article explains the PHP acosh() function, describing its purpose, parameter and return value, and provides example code demonstrating how to compute the inverse hyperbolic cosine of various numbers with the resulting outputs.

BackendPHPacosh
0 likes · 1 min read
PHP acosh() Function – Inverse Hyperbolic Cosine
Beike Product & Technology
Beike Product & Technology
Jan 6, 2021 · Backend Development

Optimizing Apollo Configuration Reading in PHP: Reducing CPU and Memory Overhead

This article analyzes the performance bottleneck caused by large Apollo configuration reads in a PHP application and presents multiple optimization strategies—including static variables, Yac/APCu caching, require‑file with opcache, and MessagePack serialization—to significantly lower CPU and memory consumption while maintaining configuration freshness.

ApolloMessagePackPHP
0 likes · 11 min read
Optimizing Apollo Configuration Reading in PHP: Reducing CPU and Memory Overhead
Laravel Tech Community
Laravel Tech Community
Jan 5, 2021 · Backend Development

PHP acos() Function – Inverse Cosine (Radians)

The PHP acos() function returns the arccosine of a given float argument in radians, detailing its signature, parameter description, return value, and providing example code with expected outputs for various inputs.

BackendPHPacos
0 likes · 1 min read
PHP acos() Function – Inverse Cosine (Radians)
Laravel Tech Community
Laravel Tech Community
Jan 4, 2021 · Backend Development

Laravel Excel Export with Merged Cells and Custom Column Formatting

This article demonstrates how to create a Laravel export class using Maatwebsite\Excel that supports merging cells, custom column formatting, and handling large numeric values, providing a complete PHP implementation with constructor, collection, event registration, and column format methods for generating Excel files.

ExcelExportPHP
0 likes · 3 min read
Laravel Excel Export with Merged Cells and Custom Column Formatting
21CTO
21CTO
Jan 1, 2021 · Backend Development

Python vs PHP for Web Development: Which Language Wins?

An in‑depth comparison of Python and PHP evaluates performance, complexity, flexibility, security, frameworks, and community support, helping developers decide which language better suits their web development projects based on project requirements, scalability, and ecosystem strengths.

BackendPHPPython
0 likes · 8 min read
Python vs PHP for Web Development: Which Language Wins?
Laravel Tech Community
Laravel Tech Community
Dec 30, 2020 · Backend Development

PHP sort() Function – Sorting Arrays

This article explains the PHP sort() function, its signature, optional sorting flags, parameters, return values, and provides a complete example demonstrating how to sort an array of strings in ascending order and display the sorted results.

ArrayBackendPHP
0 likes · 2 min read
PHP sort() Function – Sorting Arrays
Laravel Tech Community
Laravel Tech Community
Dec 29, 2020 · Backend Development

PHP shuffle() Function – Randomly Shuffle an Array

This article explains the PHP shuffle() function, describing its purpose of randomly reordering array elements, the required array parameter, the boolean return value, and provides a complete example with sample output to illustrate its usage.

ArrayBackendPHP
0 likes · 2 min read
PHP shuffle() Function – Randomly Shuffle an Array
Laravel Tech Community
Laravel Tech Community
Dec 25, 2020 · Backend Development

PHP prev() Function: Move an Array’s Internal Pointer Backward

The PHP prev() function moves an array’s internal pointer one step backward, returning the previous element’s value or FALSE when no more elements exist, and is demonstrated with a complete example showing how to iterate and retrieve values using prev, next, and current.

ArrayBackendPHP
0 likes · 2 min read
PHP prev() Function: Move an Array’s Internal Pointer Backward
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Dec 25, 2020 · Backend Development

Implementing Message Queues with Redis: Lists, Zsets, Pub/Sub, and Streams

This article explains how Redis can be used to build lightweight, high‑performance message queues by leveraging lists for simple queues, sorted sets for delayed delivery, Pub/Sub for multicast, and the Stream data structure for durable, scalable messaging, while also covering practical PHP implementations, acknowledgment, retry, graceful restart, and rate‑limiting techniques.

Message QueuePHPPubSub
0 likes · 19 min read
Implementing Message Queues with Redis: Lists, Zsets, Pub/Sub, and Streams
Liangxu Linux
Liangxu Linux
Dec 24, 2020 · Cloud Native

How to Set Up Multi-Branch CI/CD with Docker, GitLab, and Jenkins for PHP Projects

This guide explains how to avoid code‑conflict and testing interference in large PHP projects by creating independent deployment branches using Docker, GitLab, and Jenkins, detailing the required tools, installation steps, container configuration, GitLab project setup, Jenkins job creation, and webhook integration.

DockerGitLabJenkins
0 likes · 8 min read
How to Set Up Multi-Branch CI/CD with Docker, GitLab, and Jenkins for PHP Projects
Laravel Tech Community
Laravel Tech Community
Dec 24, 2020 · Backend Development

PHP next() Function: Advancing the Internal Array Pointer

The PHP next() function moves an array's internal pointer forward by one position, returning the value of the next element or FALSE when no more elements exist, and is demonstrated with sample code showing how to retrieve successive items from an array.

ArrayBackendPHP
0 likes · 2 min read
PHP next() Function: Advancing the Internal Array Pointer
Laravel Tech Community
Laravel Tech Community
Dec 23, 2020 · Backend Development

Using PHP's natsort() Function for Natural Order Array Sorting

This article explains PHP's natsort() function, which performs natural order sorting on arrays while preserving key/value associations, describes its parameters and return values, and provides a complete example comparing standard sorting with natural sorting to illustrate the differences in output.

ArrayBackendPHP
0 likes · 2 min read
Using PHP's natsort() Function for Natural Order Array Sorting
Laravel Tech Community
Laravel Tech Community
Dec 21, 2020 · Backend Development

Using list() to Assign Array Values to Variables in PHP

This article explains the PHP list() language construct, its syntax and return value, and provides detailed examples showing how to unpack array elements into variables, handle partial assignments, skip elements, and demonstrates that list() cannot operate on strings.

ArrayBackendList
0 likes · 2 min read
Using list() to Assign Array Values to Variables in PHP
Laravel Tech Community
Laravel Tech Community
Dec 20, 2020 · Backend Development

Using ksort() to Sort Arrays by Key in PHP

This article explains the PHP ksort() function, which sorts an associative array by its keys while preserving key‑value relationships, describes its parameters and return values, and provides a complete example with code and expected output.

ArrayBackendPHP
0 likes · 2 min read
Using ksort() to Sort Arrays by Key in PHP
Laravel Tech Community
Laravel Tech Community
Dec 18, 2020 · Backend Development

Using PHP key() to Retrieve Keys from Associative Arrays

This article explains the PHP key() function, its parameters and return values, and demonstrates with a complete example how to iterate over an associative array to output the keys whose values match a specific condition, such as finding all keys for the value "apple".

BackendPHPTutorial
0 likes · 2 min read
Using PHP key() to Retrieve Keys from Associative Arrays
php Courses
php Courses
Dec 18, 2020 · Backend Development

Common PHP Command‑Line Options and Script Development Guide

This article introduces the most frequently used PHP command‑line switches, explains how to retrieve module, version, configuration and help information, and demonstrates basic CLI script development with $argv and $argc, including a complete example and its output.

CLIPHPScripting
0 likes · 3 min read
Common PHP Command‑Line Options and Script Development Guide
php Courses
php Courses
Dec 17, 2020 · Backend Development

Customizing ThinkPHP 3.2 Error Page with a Personalized Template

This guide explains how to replace ThinkPHP's default error page by adding configuration entries and creating a custom HTML template, including CSS styling and JavaScript for automatic redirects, providing a more attractive and functional error display.

Error PageHTMLJavaScript
0 likes · 6 min read
Customizing ThinkPHP 3.2 Error Page with a Personalized Template
php Courses
php Courses
Dec 16, 2020 · Backend Development

Using Ajax in Laravel: Controller, View, and Route Setup

This tutorial walks through creating a Laravel controller, view, and route to handle Ajax requests, integrating jQuery on the front end, and displaying the server response, providing a practical example for backend developers to implement asynchronous interactions in a PHP application.

BackendLaravelPHP
0 likes · 5 min read
Using Ajax in Laravel: Controller, View, and Route Setup
php Courses
php Courses
Dec 16, 2020 · Backend Development

Implementing Data Validation with ThinkPHP5's Validate Class

This tutorial demonstrates how to create a ThinkPHP5 validation class, build a simple HTML form, and write a backend controller method to validate input data using scenes, providing step‑by‑step code examples for PHP developers.

ControllerFormPHP
0 likes · 3 min read
Implementing Data Validation with ThinkPHP5's Validate Class
ITPUB
ITPUB
Dec 15, 2020 · Frontend Development

Mastering Large File Uploads in the Browser: Chunking, Resume, and Progress

This article explores the challenges of uploading massive files from the browser, compares traditional form, iframe, FormData, and base64 methods, and provides detailed JavaScript and PHP examples for implementing chunked uploads, resumable transfers, and progress monitoring.

JavaScriptLarge File UploadPHP
0 likes · 11 min read
Mastering Large File Uploads in the Browser: Chunking, Resume, and Progress
php Courses
php Courses
Dec 14, 2020 · Backend Development

Using Form Method Spoofing and CSRF Protection in Laravel

This article explains how to handle RESTful HTTP methods in Laravel forms by using method spoofing, demonstrates adding CSRF tokens, disabling CSRF protection, configuring whitelist routes, and provides code examples for GET, POST, and PUT requests.

BackendForm SpoofingLaravel
0 likes · 5 min read
Using Form Method Spoofing and CSRF Protection in Laravel
php Courses
php Courses
Dec 14, 2020 · Backend Development

Simple API Development Example Using ThinkPHP 6.x

This article presents a step‑by‑step tutorial for PHP beginners on building a simple product‑detail API with ThinkPHP 6.x, covering front‑end HTML form, request‑side controller using cURL, and API controller that queries a database and returns JSON data.

APIBackendPHP
0 likes · 3 min read
Simple API Development Example Using ThinkPHP 6.x
php Courses
php Courses
Dec 11, 2020 · Backend Development

Laravel Performance Optimization Tips

This article presents practical Laravel performance optimization techniques, including selecting only needed fields in queries, using eager loading to reduce database calls, removing unnecessary Composer dependencies, enabling caching, upgrading to the latest PHP version, and leveraging queues for time‑consuming tasks.

BackendLaravelPHP
0 likes · 4 min read
Laravel Performance Optimization Tips
php Courses
php Courses
Dec 9, 2020 · Backend Development

How to Specify a Custom Table Name for a Laravel Model

This guide explains why Laravel automatically pluralizes model names to table names, the problems it can cause, and how to override the default by adding a protected $table property in the model class to map the model to a custom table name.

BackendCustom TableLaravel
0 likes · 2 min read
How to Specify a Custom Table Name for a Laravel Model
Laravel Tech Community
Laravel Tech Community
Dec 5, 2020 · Backend Development

Generating Random Numbers in PHP Using shuffle, array_unique, array_flip, and Custom Functions

This article demonstrates multiple PHP techniques for generating unique random numbers, including using shuffle on a range array, applying array_unique with a while loop, leveraging array_flip to remove duplicates, and creating a customizable randpw function with mt_rand, complete with code examples and output results.

BackendPHParray-functions
0 likes · 4 min read
Generating Random Numbers in PHP Using shuffle, array_unique, array_flip, and Custom Functions
php Courses
php Courses
Dec 4, 2020 · Backend Development

Quickly Locate Source Files and Hide Methods in PhpStorm for Efficient Screenshotting

This article explains how to configure PhpStorm to automatically locate the source file of the currently edited code and hide its method list, walking through two solutions—including using the navigation circle feature and disabling method display in settings—to improve workflow efficiency for developers.

IDE TipsPHPSource Navigation
0 likes · 4 min read
Quickly Locate Source Files and Hide Methods in PhpStorm for Efficient Screenshotting
Laravel Tech Community
Laravel Tech Community
Dec 3, 2020 · Backend Development

PHP array_unique() – Removing Duplicate Values from an Array

This article explains how the PHP array_unique() function removes duplicate values from an array while preserving original keys, describes its optional sort_flags parameter, lists sorting constants, and provides a complete example with code and expected output.

ArrayBackendDuplicate
0 likes · 2 min read
PHP array_unique() – Removing Duplicate Values from an Array
php Courses
php Courses
Dec 3, 2020 · Backend Development

Understanding TP5.1 Framework and PHP OpCache Caching Issues

This article explains why changes to PHP code in the TP5.1 framework may require a 30‑second wait before appearing in the browser, revealing that the delay is caused by PHP's OpCache caching mechanism, which must be manually enabled in PHP 5.x but is often enabled by default in PHP 7.x, and provides guidance on diagnosing and resolving the issue.

OPcachePHPTP5.1
0 likes · 1 min read
Understanding TP5.1 Framework and PHP OpCache Caching Issues
php Courses
php Courses
Dec 2, 2020 · Backend Development

Implementing SMS Verification with ThinkPHP and Yunpian API

This tutorial explains how to build an SMS verification feature in a ThinkPHP application by generating codes, storing them, sending them via Yunpian's API, and validating user input, including required API parameters and controller method implementations.

APIBackendPHP
0 likes · 2 min read
Implementing SMS Verification with ThinkPHP and Yunpian API
php Courses
php Courses
Dec 1, 2020 · Backend Development

Using PHP FFI to Call the Cjieba Chinese Word Segmentation Library

This article demonstrates how to use PHP 7.4's FFI to directly call the Cjieba Chinese word‑segmentation library, explains common pitfalls such as uninitialized variables and pointer handling, shows code examples for compiling and running the library, and compares PHP's performance with native C.

BackendCjiebaFFI
0 likes · 6 min read
Using PHP FFI to Call the Cjieba Chinese Word Segmentation Library
Laravel Tech Community
Laravel Tech Community
Nov 27, 2020 · Backend Development

array_udiff_assoc() – Compute Array Difference with Index Check Using Callback Comparison

This article explains PHP’s array_udiff_assoc function, detailing its purpose of computing array differences with index checks using a user‑defined callback, describing its parameters and return value, and providing a complete example with class definition, custom comparison function, usage code, and resulting output.

ArrayBackendDifference
0 likes · 3 min read
array_udiff_assoc() – Compute Array Difference with Index Check Using Callback Comparison
php Courses
php Courses
Nov 27, 2020 · Backend Development

Upgrading PHP to 8 on macOS with Homebrew and Configuring Common Extensions

This guide walks you through updating Homebrew, upgrading PHP to version 8 on macOS, verifying the installation, restarting web servers, installing and managing PECL extensions, and handling Laravel Valet-specific steps to ensure a fully functional PHP 8 environment.

HomebrewLaravel ValetPECL
0 likes · 4 min read
Upgrading PHP to 8 on macOS with Homebrew and Configuring Common Extensions
php Courses
php Courses
Nov 24, 2020 · Backend Development

Implementing a Match‑3 (Happy Elimination) Game Algorithm in PHP

This article explains the requirements, scoring rules, and complete PHP implementation of a classic 8×8 match‑3 (Happy Elimination) game, including random color generation, detection of horizontal and vertical groups, removal, gravity handling, and recursive scoring until no more matches remain.

Game AlgorithmPHPScoring
0 likes · 11 min read
Implementing a Match‑3 (Happy Elimination) Game Algorithm in PHP
php Courses
php Courses
Nov 24, 2020 · Backend Development

Curated List of Useful Open-Source PHP Projects

This article presents a curated collection of ten open‑source PHP projects—including a GitHub leak‑monitoring system, a high‑performance PHP extension, clean‑code examples, a Markdown parser, a cURL wrapper, a Swoole‑based music platform, a ThinkPHP e‑commerce suite, a self‑hosted RSS reader, a Laravel documentation manager, and a PHP interview Q&A repository—each with key features, usage snippets, and GitHub links for developers seeking robust backend tools.

BackendGitHubPHP
0 likes · 6 min read
Curated List of Useful Open-Source PHP Projects
Ops Development Stories
Ops Development Stories
Nov 24, 2020 · Backend Development

Master NGINX Unit: Install, Configure, and Run Multi‑Language Apps

This guide introduces NGINX Unit, a lightweight dynamic web and application server supporting multiple languages, and provides step‑by‑step installation instructions for CentOS, Ubuntu, and Docker, along with configuration examples for PHP and Java applications using its RESTful JSON API.

ConfigurationNGINX UnitPHP
0 likes · 8 min read
Master NGINX Unit: Install, Configure, and Run Multi‑Language Apps
php Courses
php Courses
Nov 23, 2020 · Backend Development

Using Gearman with PHP: Setup, Worker and Client Scripts, and Deployment

This article provides a step‑by‑step guide for configuring Gearman persistence, writing PHP worker and client scripts, setting up GearmanManager, launching the gearmand server with MySQL storage, and running the client to dispatch thousands of email jobs, illustrating fault‑tolerant asynchronous processing.

BackendGearmanPHP
0 likes · 4 min read
Using Gearman with PHP: Setup, Worker and Client Scripts, and Deployment
php Courses
php Courses
Nov 23, 2020 · Backend Development

music-php: A PHP Command-Line Music Search and Download Tool

music-php is a PHP‑based command‑line utility that uses the Meting library to search and download music from services like QQ, NetEase, KuGou, and Baidu, with installation instructions via Composer, phar files, and global or local setups.

BackendCLIComposer
0 likes · 2 min read
music-php: A PHP Command-Line Music Search and Download Tool
Laravel Tech Community
Laravel Tech Community
Nov 22, 2020 · Backend Development

Using PHP's array_search() to Locate a Value Within an Array

This article explains how PHP's array_search() function searches for a specified needle in a haystack array, describes its parameters—including the optional strict mode—and shows example code demonstrating how to retrieve the key of a matching element.

BackendPHParray_search
0 likes · 2 min read
Using PHP's array_search() to Locate a Value Within an Array
DeWu Technology
DeWu Technology
Nov 22, 2020 · Backend Development

Evolution of Transaction System Architecture at DeWu

Alan, a twelve-year veteran of startup and e-commerce development, outlines DeWu’s transaction system evolution through five architectural eras—from a single ECS-Redis setup in 2017 to the modern, Java-based, Five-Color-Stone refactor that migrated 27 billion records, redesigned 700+ APIs, and now reliably powers major sales events while continuing protocol, gateway, monitoring, and compliance optimizations.

PHPSystem Architecturee‑commerce
0 likes · 4 min read
Evolution of Transaction System Architecture at DeWu
php Courses
php Courses
Nov 20, 2020 · Backend Development

Calculating Student Age Using PHP Date Functions

This tutorial demonstrates how to use PHP variables and the date() function to automatically compute a student's age based on their birthdate, handling current date retrieval, birthday checks, and adjusting the age calculation accordingly.

BackendPHPage-calculation
0 likes · 3 min read
Calculating Student Age Using PHP Date Functions
php Courses
php Courses
Nov 20, 2020 · Databases

Using topthink/think-migration for Database Migrations in ThinkPHP

This guide explains how to install and use the topthink/think-migration package with ThinkPHP to create, run, and roll back database migration scripts, covering version compatibility, command‑line operations, migration class creation, and practical examples for creating, updating, and deleting tables and columns.

CLIComposerPHP
0 likes · 5 min read
Using topthink/think-migration for Database Migrations in ThinkPHP
Wukong Talks Architecture
Wukong Talks Architecture
Nov 20, 2020 · Backend Development

Understanding PHP Garbage Collection and Reference Counting

This article explains PHP's garbage collection mechanism, detailing how reference counting works, the role of zval structures, the identification and reclamation process, and provides source code insights to compare PHP's approach with Java's garbage collection.

PHPbackend-developmentgarbage-collection
0 likes · 9 min read
Understanding PHP Garbage Collection and Reference Counting
php Courses
php Courses
Nov 17, 2020 · Backend Development

Using Intervention Image Package in Laravel for Image Manipulation

This article introduces the Laravel-compatible Intervention Image package, explains how to install it via Composer, configure the service provider and alias, and demonstrates basic image operations such as resizing, saving, and resource destruction, including a known issue with overwriting files.

BackendComposerImage Processing
0 likes · 2 min read
Using Intervention Image Package in Laravel for Image Manipulation
php Courses
php Courses
Nov 17, 2020 · Backend Development

PHP Class for Converting Between Solar (Gregorian) and Lunar (Chinese) Calendars

This article presents a PHP class that implements algorithms for converting Gregorian dates to Chinese lunar dates and vice versa, including utilities for leap year detection, month length calculation, zodiac retrieval, and handling of leap months, with complete source code examples and usage demonstration.

BackendDate ConversionLunar Calendar
0 likes · 13 min read
PHP Class for Converting Between Solar (Gregorian) and Lunar (Chinese) Calendars
php Courses
php Courses
Nov 13, 2020 · Backend Development

Understanding ThinkPHP Query Method and Database Connection Initialization

The article explains how ThinkPHP’s query method works with raw SQL, distinguishes between execute for writes and query for reads, details MySQL master‑slave replication considerations, and describes the framework’s database connection initialization, including read/write separation logic and related code examples.

BackendPHPThinkPHP
0 likes · 6 min read
Understanding ThinkPHP Query Method and Database Connection Initialization
php Courses
php Courses
Nov 13, 2020 · Backend Development

Configuring ThinkPHP to Return JSON and Enable CORS for Vue Integration

This guide explains how to configure ThinkPHP to return JSON by default, set up individual JSON responses, and resolve Vue's cross‑origin request issues by adding appropriate Access‑Control‑Allow‑Origin headers in controller actions, with code examples for each step.

BackendCORSPHP
0 likes · 2 min read
Configuring ThinkPHP to Return JSON and Enable CORS for Vue Integration