php Courses
Author

php Courses

php中文网's platform for the latest courses and technical articles, helping PHP learners advance quickly.

3.1k
Articles
1
Likes
8.0k
Views
0
Comments
Recent Articles

Latest from php Courses

100 recent articles max
php Courses
php Courses
Jan 15, 2026 · Backend Development

Master PHP ftell(): Track File Pointer Position with Simple Code

This guide explains PHP's ftell() function, covering its signature, parameters, return values, a step‑by‑step example that reads the first 10 bytes of a file, and important notes on byte offsets for multibyte characters.

PHPbackendfile-handling
0 likes · 3 min read
Master PHP ftell(): Track File Pointer Position with Simple Code
php Courses
php Courses
Jan 15, 2026 · Backend Development

Master PHP’s trim(): Clean Up Strings Efficiently

This guide explains why unwanted whitespace harms data quality, introduces PHP's trim() function and its variants, shows practical code examples for cleaning user input, CSV files, and API parameters, and offers performance tips and best‑practice recommendations for robust backend development.

PHPTRIMbackend-development
0 likes · 9 min read
Master PHP’s trim(): Clean Up Strings Efficiently
php Courses
php Courses
Jan 15, 2026 · Backend Development

Master PHP Form Validation: Essential Techniques to Secure User Input

This guide explains how to use PHP functions to validate required fields, email formats, phone numbers, and to filter HTML tags, special characters, and SQL injection, providing practical code examples that enhance form security and data integrity.

Data Filteringbackendform-validation
0 likes · 4 min read
Master PHP Form Validation: Essential Techniques to Secure User Input
php Courses
php Courses
Jan 13, 2026 · Backend Development

Mastering PHP’s array_reverse(): Reverse Arrays with Ease

This guide explains PHP’s array_reverse() function, covering its purpose, syntax, parameters, return values, and practical examples for indexed, associative, and key‑preserving array reversals, while highlighting important usage notes to help developers apply it correctly in their code.

PHParray_reversephp arrays
0 likes · 4 min read
Mastering PHP’s array_reverse(): Reverse Arrays with Ease
php Courses
php Courses
Jan 13, 2026 · Backend Development

Mastering PHP curl_setopt: Syntax, Parameters, and Real-World Example

This guide explains the PHP curl_setopt function, covering its syntax, parameter meanings, return value, and provides a complete example that demonstrates sending a GET request, handling responses, error checking, and closing the cURL session.

HTTP Requestbackendcurl
0 likes · 4 min read
Mastering PHP curl_setopt: Syntax, Parameters, and Real-World Example
php Courses
php Courses
Jan 13, 2026 · Backend Development

How to Detect Duplicate Elements in a PHP Array in O(n) Time

This article explains how to determine whether an integer array contains any duplicate values using a PHP solution that leverages an associative map to achieve linear time and space complexity, complete with example inputs, detailed code walkthrough, and complexity analysis.

ArrayPHPalgorithm
0 likes · 4 min read
How to Detect Duplicate Elements in a PHP Array in O(n) Time
php Courses
php Courses
Jan 13, 2026 · Backend Development

How to Use PHP’s is_string() to Validate Variables – Code Examples

This guide explains PHP’s is_string() function, its syntax, and how it returns true for string variables and false otherwise, illustrated with sample code that checks name, age, and city variables, and includes best practices for input validation to avoid security risks.

Code Exampleis_stringstring-validation
0 likes · 4 min read
How to Use PHP’s is_string() to Validate Variables – Code Examples
php Courses
php Courses
Jan 12, 2026 · Backend Development

Master PHP’s glob() Function: Find Files and Directories Efficiently

This guide explains PHP’s glob() function, its syntax, parameters, and practical examples for locating files and directories using patterns, wildcards, and flags, helping developers quickly retrieve matching paths while noting performance considerations for large file sets.

FilesystemPHPbackend
0 likes · 4 min read
Master PHP’s glob() Function: Find Files and Directories Efficiently
php Courses
php Courses
Jan 12, 2026 · Information Security

How to Secure User Passwords in PHP with password_hash

This guide explains why password hashing is crucial for protecting user credentials, introduces PHP's password_hash and password_verify functions, provides a complete code example, and highlights automatic salting and verification best practices for robust password security.

hashingpassword_hashpassword_verify
0 likes · 4 min read
How to Secure User Passwords in PHP with password_hash