Tagged articles

PHP

3051 articles · Page 20 of 31
php Courses
php Courses
Sep 7, 2023 · Backend Development

PHP strtoupper() Function: Syntax, Parameters, Return Value, Usage Examples, and Important Notes

This article explains PHP's strtoupper() function, covering its syntax, required string parameter, return value, multiple usage examples—including full string conversion, partial conversion, word capitalization, regex-based conversion, and multibyte handling—along with key considerations such as case sensitivity and non‑letter character behavior.

PHPStringstrtoupper
0 likes · 5 min read
PHP strtoupper() Function: Syntax, Parameters, Return Value, Usage Examples, and Important Notes
php Courses
php Courses
Sep 7, 2023 · Backend Development

PHP strtolower() Function: Syntax, Parameters, Return Value, Examples, and Usage Tips

The article explains PHP's strtolower() function, detailing its syntax, parameters, return value, and providing multiple code examples—including full string conversion, partial conversion, word-level manipulation, and multibyte handling—while also noting important considerations for case sensitivity and non‑alphabetic characters.

BackendPHPString Functions
0 likes · 5 min read
PHP strtolower() Function: Syntax, Parameters, Return Value, Examples, and Usage Tips
php Courses
php Courses
Sep 6, 2023 · Backend Development

PHP strnatcmp() Function: Natural Order String Comparison

The article explains PHP’s strnatcmp() function, which compares two strings using natural order sorting, details its syntax, demonstrates usage with code examples showing how numeric parts are evaluated, and notes the case‑sensitive behavior and the alternative strnatcasecmp() for case‑insensitive comparisons.

PHPnatural sortstring-comparison
0 likes · 4 min read
PHP strnatcmp() Function: Natural Order String Comparison
php Courses
php Courses
Sep 6, 2023 · Backend Development

PHP strncasecmp() Function: Syntax, Parameters, Return Values, and Usage Example

strncasecmp() is a PHP string comparison function that compares the first n characters of two strings case‑insensitively, with detailed syntax, parameter explanations, return values, a practical code example, and usage notes on handling full‑string comparisons and typical applications.

Backend DevelopmentPHPcase-insensitive
0 likes · 3 min read
PHP strncasecmp() Function: Syntax, Parameters, Return Values, and Usage Example
php Courses
php Courses
Sep 6, 2023 · Backend Development

Implementing a Web Crawler with PHP and Goutte

This tutorial explains how to set up the PHP environment, install the Goutte library, and use it to fetch page content, extract hyperlinks, and submit forms, providing complete code examples for building a functional web crawler.

BackendCrawlerGoutte
0 likes · 5 min read
Implementing a Web Crawler with PHP and Goutte
Laravel Tech Community
Laravel Tech Community
Sep 5, 2023 · Backend Development

Using MySQLi and PDO to Prevent SQL Injection in PHP

The article explains why directly concatenating user input into SQL queries leads to injection vulnerabilities and demonstrates how to secure PHP database operations using input validation, escaping functions, and prepared statements with MySQLi and PDO, while comparing related sanitization functions.

MySQLiPDOPHP
0 likes · 5 min read
Using MySQLi and PDO to Prevent SQL Injection in PHP
php Courses
php Courses
Sep 4, 2023 · Fundamentals

Binary Search: Explanation and PHP Implementations

Binary search is an efficient O(log n) algorithm for locating a target value in a sorted array, and this article explains its step-by-step process, provides iterative and recursive PHP code examples, and discusses their usage and performance considerations.

O(log n)PHPRecursive
0 likes · 6 min read
Binary Search: Explanation and PHP Implementations
php Courses
php Courses
Sep 2, 2023 · Backend Development

Using PHP strcmp() Function: Syntax, Usage, and Examples

This article explains the PHP strcmp() function, covering its syntax, return values, and practical examples for comparing string equality, ordering, case sensitivity, and length, while also noting the related strcasecmp() function for case‑insensitive comparisons.

Backend DevelopmentCode TutorialPHP
0 likes · 6 min read
Using PHP strcmp() Function: Syntax, Usage, and Examples
php Courses
php Courses
Sep 2, 2023 · Backend Development

Using PHP str_split() Function: Syntax, Parameters, and Practical Examples

This article explains PHP's str_split() function, detailing its syntax, parameters, return values, and providing multiple code examples that demonstrate splitting strings into character arrays, handling custom split lengths, empty strings, and invalid lengths, while also noting multibyte character considerations.

Code ExamplesPHPString Manipulation
0 likes · 5 min read
Using PHP str_split() Function: Syntax, Parameters, and Practical Examples
php Courses
php Courses
Sep 1, 2023 · Artificial Intelligence

Integrating Baidu Text-to-Speech API with PHP

This tutorial demonstrates how to obtain Baidu TTS credentials, construct the required signature, send an HTTP request using PHP's cURL library, and save the returned audio data as an MP3 file, providing a complete code example for developers.

API integrationBaidu TTSPHP
0 likes · 5 min read
Integrating Baidu Text-to-Speech API with PHP
php Courses
php Courses
Aug 30, 2023 · Backend Development

Understanding PHP explode() Function: Syntax, Examples, and Use Cases

This article explains PHP's explode() function, detailing its syntax, parameters, and optional limit, and provides multiple code examples demonstrating string-to-array splitting with various delimiters and extracting URL components, helping developers effectively manipulate strings in backend applications.

BackendPHPexplode
0 likes · 4 min read
Understanding PHP explode() Function: Syntax, Examples, and Use Cases
php Courses
php Courses
Aug 30, 2023 · Backend Development

Understanding PHP strcspan() Function: Syntax, Usage, and Examples

This article explains PHP's strcspan() function, detailing its syntax, parameters, return value, and provides three practical code examples that demonstrate how it counts consecutive characters in a string based on a given character list.

Backend DevelopmentCode ExamplesPHP
0 likes · 5 min read
Understanding PHP strcspan() Function: Syntax, Usage, and Examples
php Courses
php Courses
Aug 30, 2023 · Backend Development

Implementing a Mind Map Application with PHP (Laravel) and Vue.js

This article explains how to design, develop, and debug a web-based mind‑map tool by combining PHP/Laravel backend APIs with a Vue.js frontend component, covering requirements analysis, database schema, CRUD endpoints, and Vue component implementation with code examples.

CRUDLaravelPHP
0 likes · 6 min read
Implementing a Mind Map Application with PHP (Laravel) and Vue.js
php Courses
php Courses
Aug 29, 2023 · Backend Development

Implementing Phone Verification Login with PHP

This article explains how to implement a phone‑verification login system using PHP, covering front‑end page design, AJAX‑based code sending, and server‑side validation with example code snippets for HTML, JavaScript, and PHP integration.

AJAXPHPPhone Verification
0 likes · 6 min read
Implementing Phone Verification Login with PHP
php Courses
php Courses
Aug 28, 2023 · Backend Development

Using PHP and Vue for Mind Map Application Development

This article examines how PHP and Vue are applied in developing mind‑map applications, covering backend data storage, API creation, and frontend component design with code examples for each technology.

BackendPHPmind map
0 likes · 5 min read
Using PHP and Vue for Mind Map Application Development
php Courses
php Courses
Aug 26, 2023 · Backend Development

Implementing Data Backup and Recovery with PHP

This tutorial demonstrates how to use PHP to create a backup directory, export MySQL tables to text files, and restore them by reading the files and executing INSERT statements, providing complete code examples for both backup and recovery processes.

BackendMySQLPHP
0 likes · 5 min read
Implementing Data Backup and Recovery with PHP
php Courses
php Courses
Aug 25, 2023 · Frontend Development

Cross-Domain Communication in Web Development Using PHP (JSONP Example)

This article explains cross‑domain communication in web development, outlines common methods such as JSONP, CORS, iframe + postMessage and proxy, and provides a PHP example of JSONP implementation with client‑side script to demonstrate data transfer across different domains.

JSONPPHPfrontend
0 likes · 4 min read
Cross-Domain Communication in Web Development Using PHP (JSONP Example)
php Courses
php Courses
Aug 25, 2023 · Backend Development

Implementing Cross-Domain Communication with PHP: JSONP Example

This article explains cross-domain communication concepts, compares methods like JSONP, CORS, iframe postMessage, and provides a complete PHP implementation of JSONP with client-side script examples, enabling data exchange across different domains in web development.

CORSJSONPPHP
0 likes · 6 min read
Implementing Cross-Domain Communication with PHP: JSONP Example
php Courses
php Courses
Aug 24, 2023 · Backend Development

Understanding PHP's strstr() Function: Syntax, Usage, and Examples

This article explains PHP's strstr() function, covering its syntax, parameters, and practical examples such as finding the first occurrence, retrieving text before the needle, performing case‑sensitive and case‑insensitive searches, and handling multibyte characters with mb_strstr.

Backend DevelopmentCode ExamplesPHP
0 likes · 4 min read
Understanding PHP's strstr() Function: Syntax, Usage, and Examples
php Courses
php Courses
Aug 24, 2023 · Backend Development

Using PHP similar_text() Function to Compare String Similarity

This article explains the PHP similar_text() function, its syntax, how to use it with code examples to calculate the similarity percentage between two strings, and important considerations such as case sensitivity, length limits, and result accuracy.

Backend DevelopmentPHPsimilar_text
0 likes · 3 min read
Using PHP similar_text() Function to Compare String Similarity
php Courses
php Courses
Aug 24, 2023 · Backend Development

Accessing Private Members in PHP with __get(), __set() and ArrayAccess

This article explains why PHP throws "attempt to access private member" errors, describes the visibility keywords public, protected, private, and demonstrates how to use the magic methods __get() and __set() as well as the ArrayAccess interface to read and write private properties from outside the class.

ArrayAccessPHPmagic methods
0 likes · 5 min read
Accessing Private Members in PHP with __get(), __set() and ArrayAccess
php Courses
php Courses
Aug 23, 2023 · Backend Development

Building a Simple Online Quiz System with PHP and MySQL

This tutorial explains how to create a basic online quiz platform by designing a MySQL database, writing PHP code to connect, retrieve, display questions, and process user answers to calculate scores, providing a foundation for further feature expansion.

BackendMySQLOnline Quiz
0 likes · 5 min read
Building a Simple Online Quiz System with PHP and MySQL
php Courses
php Courses
Aug 22, 2023 · Backend Development

Using PHP str_ireplace() Function for Case-Insensitive String Replacement

This article explains PHP's str_ireplace() function, detailing its parameters, usage differences from str_replace(), and provides multiple code examples demonstrating case-insensitive replacements in strings, arrays, and combined search/replace scenarios, along with a brief summary of its capabilities.

PHPTutorialstr_ireplace
0 likes · 6 min read
Using PHP str_ireplace() Function for Case-Insensitive String Replacement
php Courses
php Courses
Aug 21, 2023 · Backend Development

Using PHP mb_strlen() to Accurately Measure Multibyte String Lengths

This article explains how to use PHP's mb_strlen() function to accurately measure string lengths, handle multibyte characters, specify encodings, retrieve byte counts, count character occurrences, and work with different language encodings, providing clear code examples for each case.

Backend DevelopmentPHPencoding
0 likes · 4 min read
Using PHP mb_strlen() to Accurately Measure Multibyte String Lengths
php Courses
php Courses
Aug 19, 2023 · Backend Development

Implementing Email Verification for Login and Registration with PHP

This article explains how to build a secure email‑verification login and registration system using PHP and MySQL, covering database schema creation, user registration with verification code generation and email sending, verification link handling, and login validation, with full code examples.

Email VerificationMySQLPHP
0 likes · 5 min read
Implementing Email Verification for Login and Registration with PHP
php Courses
php Courses
Aug 19, 2023 · Backend Development

How to Use PHP's sqrt() Function to Calculate Square Roots

This article explains the PHP sqrt() function, demonstrates how to compute square roots for positive and negative numbers, shows how to cast the result to an integer, and highlights important usage considerations with clear code examples.

FunctionPHPcomplex numbers
0 likes · 5 min read
How to Use PHP's sqrt() Function to Calculate Square Roots
php Courses
php Courses
Aug 18, 2023 · Backend Development

Using PHP's pi() Function to Retrieve the Approximate Value of π

The article explains PHP's built‑in pi() function, shows how to retrieve the approximate value of π, demonstrates its use in simple output and in calculating a circle’s circumference and area with code examples, and notes the function’s limited precision.

Code ExamplePHPPi
0 likes · 4 min read
Using PHP's pi() Function to Retrieve the Approximate Value of π
php Courses
php Courses
Aug 18, 2023 · Backend Development

How to Use PHP's round() Function for Precise Number Rounding

This article explains PHP's round() function, covering its basic usage, optional precision and rounding mode parameters, and provides multiple code examples demonstrating rounding of positive, negative, and specially‑mode‑controlled numbers.

Code ExamplesFunctionsPHP
0 likes · 5 min read
How to Use PHP's round() Function for Precise Number Rounding
php Courses
php Courses
Aug 17, 2023 · Backend Development

How to Use PHP's pow() Function for Exponential Calculations

This article explains PHP's pow() function, its syntax, parameter meanings, and demonstrates how to compute powers for positive, negative, fractional, and zero values with code examples while noting its floating‑point return behavior and special cases like INF and NAN.

ExponentialMathPHP
0 likes · 4 min read
How to Use PHP's pow() Function for Exponential Calculations
php Courses
php Courses
Aug 16, 2023 · Backend Development

Understanding PHP's mt_rand() Function: Syntax, Parameters, Return Value, and Practical Examples

This article explains PHP's mt_rand() pseudo‑random number generator, covering its syntax, optional min and max parameters, return value, and provides three practical code examples for generating random integers, unique integer sets, and random strings, followed by a brief summary and learning resources.

Backend DevelopmentCode ExamplesPHP
0 likes · 5 min read
Understanding PHP's mt_rand() Function: Syntax, Parameters, Return Value, and Practical Examples
php Courses
php Courses
Aug 16, 2023 · Backend Development

Implementing Alipay Asynchronous and Synchronous Callbacks in PHP

This article explains the roles of Alipay's asynchronous and synchronous callbacks in PHP integration, outlines step‑by‑step processing procedures, and provides complete example code for verifying signatures, updating order status, and handling both server‑side notifications and front‑end return pages.

AlipayBackendCallback
0 likes · 7 min read
Implementing Alipay Asynchronous and Synchronous Callbacks in PHP
php Courses
php Courses
Aug 15, 2023 · Backend Development

Using PHP fmod() Function to Compute Floating‑Point Remainder

The article explains PHP's fmod() function for calculating the remainder of two floating‑point numbers, describes its syntax and parameter roles, provides multiple code examples—including handling of zero divisors and negative values—and notes that it returns a float or NAN when appropriate.

MathPHPfloating-point
0 likes · 4 min read
Using PHP fmod() Function to Compute Floating‑Point Remainder
php Courses
php Courses
Aug 14, 2023 · Backend Development

Using PHP floor() Function: Syntax, Examples, and Tips

This article explains PHP's floor() function, its syntax, provides multiple code examples for rounding floats, integers, negative numbers, and arrays, and highlights important notes such as its difference from round() and its combination with other math functions.

Backend DevelopmentPHPfloor()
0 likes · 3 min read
Using PHP floor() Function: Syntax, Examples, and Tips
php Courses
php Courses
Aug 14, 2023 · Backend Development

Using PHP ceil() Function: Syntax, Parameters, and Examples

The article explains PHP's ceil() function, detailing its syntax, parameter, and behavior with positive, negative, and integer values, and provides four code examples demonstrating rounding up numbers, while noting that the function only works with numeric data.

Backend DevelopmentPHPRounding
0 likes · 3 min read
Using PHP ceil() Function: Syntax, Parameters, and Examples
php Courses
php Courses
Aug 12, 2023 · Backend Development

Using natcasesort() in PHP for Natural Case‑Insensitive Array Sorting

This article explains how PHP's natcasesort() function performs natural, case‑insensitive sorting on one‑dimensional arrays, modifies the original array in place, returns a boolean status, and provides usage examples and important considerations.

PHParray sortingcase-insensitive
0 likes · 3 min read
Using natcasesort() in PHP for Natural Case‑Insensitive Array Sorting
php Courses
php Courses
Aug 12, 2023 · Backend Development

Encrypting and Decrypting Form Data with PHP

This article explains how to securely encrypt and decrypt user‑submitted form data in PHP using the AES‑256‑CBC algorithm, providing step‑by‑step code examples for creating encryption/decryption functions, applying them to form inputs, and emphasizing key safety and HTTPS.

BackendForm SecurityPHP
0 likes · 4 min read
Encrypting and Decrypting Form Data with PHP
21CTO
21CTO
Aug 11, 2023 · Backend Development

Why PHP Still Dominates Server‑Side Development in 2023: Key Stats and Trends

The 2023 PHP report reveals that PHP holds a 77.5% market share among server‑side languages, outlines its dominant use in APIs, CMS and internal apps, details deployment preferences, container and orchestration adoption, version distribution, and the major challenges teams face when upgrading.

Backend DevelopmentPHPcontainerization
0 likes · 10 min read
Why PHP Still Dominates Server‑Side Development in 2023: Key Stats and Trends
php Courses
php Courses
Aug 11, 2023 · Backend Development

Using PHP natsort() for Natural Sorting of Arrays

This article explains how PHP's natsort() function performs natural sorting on arrays, compares it with regular sort(), demonstrates case‑sensitive and case‑insensitive examples using natsort() and natcasesort(), and provides practical code snippets for developers.

PHParraynatcasesort
0 likes · 5 min read
Using PHP natsort() for Natural Sorting of Arrays
php Courses
php Courses
Aug 11, 2023 · Information Security

PHP Code Security Testing: Review, Tools, and Practices

This article explains how to secure PHP web applications by performing code reviews, validating user input, preventing SQL injection and XSS, and using security testing tools such as PHP Security Scanner, OWASP ZAP, and Kali Linux, along with practical testing methods like boundary, authorization, and exception handling.

PHPSecurity TestingXSS
0 likes · 5 min read
PHP Code Security Testing: Review, Tools, and Practices
php Courses
php Courses
Aug 9, 2023 · Backend Development

Building a Simple User Permission Management System with PHP

This article explains how to develop a simple yet powerful user permission management system for a blog using PHP, covering database schema design, user authentication, role and permission handling, and code examples for login, permission checks, and access control.

PHPUser Authenticationdatabase design
0 likes · 7 min read
Building a Simple User Permission Management System with PHP
php Courses
php Courses
Aug 8, 2023 · Backend Development

How to Build a Secure Online Voting System with PHP

This article explains how to design and implement a PHP-based online voting system with user registration, login, vote submission, and anti‑cheating measures such as session validation, duplicate‑vote checks, transactions, captchas, and vote‑limit enforcement.

Backend DevelopmentCAPTCHAPHP
0 likes · 9 min read
How to Build a Secure Online Voting System with PHP
php Courses
php Courses
Aug 5, 2023 · Backend Development

How to Use PHP's array_unshift() to Prepend Elements to an Array

This article explains the PHP array_unshift() function, its syntax, and how to prepend single or multiple values—including other arrays—to the beginning of an array, with code examples and practical usage tips, while warning about its in‑place modification behavior.

PHParray_unshiftarrays
0 likes · 4 min read
How to Use PHP's array_unshift() to Prepend Elements to an Array
php Courses
php Courses
Aug 5, 2023 · Backend Development

Implementing Microservice Architecture in PHP with Swoole and Lumen

This article explains the core principles of microservice architecture and demonstrates how to build a PHP‑based microservice system using Swoole, Lumen, RabbitMQ, and Consul, providing step‑by‑step code examples for installation, routing, and server setup.

LumenMicroservicesPHP
0 likes · 5 min read
Implementing Microservice Architecture in PHP with Swoole and Lumen
php Courses
php Courses
Aug 4, 2023 · Backend Development

Using PHP end() Function to Retrieve the Last Element of an Array

This article explains the PHP end() function, its syntax, return values, and demonstrates how to use it with both indexed and associative arrays, including combined usage with reset() for reverse traversal, providing clear code examples for each scenario.

PHPTutorialarray
0 likes · 5 min read
Using PHP end() Function to Retrieve the Last Element of an Array
php Courses
php Courses
Aug 4, 2023 · Backend Development

Understanding PHP reset() Function: Syntax, Examples, and Usage

This article explains PHP's reset() function, its syntax, behavior, and provides multiple code examples demonstrating how to retrieve the first array element, iterate through arrays, and combine it with end() to access both first and last elements.

FunctionsPHPTutorial
0 likes · 4 min read
Understanding PHP reset() Function: Syntax, Examples, and Usage
php Courses
php Courses
Aug 4, 2023 · Backend Development

Using PHP Traits for Effective Code Reuse

This article explains how PHP traits enable code reuse by allowing reusable method blocks to be incorporated into classes, covering trait definition, simple examples, method priority rules, conflict resolution with multiple traits, and trait composition for flexible functionality sharing.

OOPPHPTraits
0 likes · 5 min read
Using PHP Traits for Effective Code Reuse
php Courses
php Courses
Aug 3, 2023 · Backend Development

Using the PHP prev() Function: Syntax, Examples, and Tips

This article explains PHP's prev() function, detailing its syntax, usage examples—including basic calls, resetting pointers with reset(), reverse array traversal with while loops—and important considerations such as boundary behavior, providing clear code snippets for developers.

PHParraypointer
0 likes · 5 min read
Using the PHP prev() Function: Syntax, Examples, and Tips
Open Source Tech Hub
Open Source Tech Hub
Aug 2, 2023 · Backend Development

How NativePHP Bridges Laravel and Electron for Seamless Desktop Apps

This article explains how NativePHP integrates Laravel with Electron (and future Tauri) by providing a complete API, detailing installation, the boot process, core workflow involving Express and PHP servers, event handling, window management, and the benefits of using a unified backend‑centric approach.

ElectronJavaScriptLaravel
0 likes · 10 min read
How NativePHP Bridges Laravel and Electron for Seamless Desktop Apps
php Courses
php Courses
Aug 1, 2023 · Backend Development

Building a Simple PHP Message Board with MySQL

This tutorial guides you through creating a simple PHP message board, covering MySQL database setup, table design, and step‑by‑step PHP scripts for displaying a form, handling submissions, and listing comments, while also noting security and extension considerations.

Message BoardMySQLPHP
0 likes · 6 min read
Building a Simple PHP Message Board with MySQL
php Courses
php Courses
Aug 1, 2023 · Backend Development

Using PHP shuffle() Function to Randomly Reorder Array Elements

This article explains the PHP shuffle() function, detailing its syntax, return behavior, usage examples, and important considerations such as its effect on the original array, limitations with associative arrays, and handling of duplicate elements, providing a practical code demonstration.

PHPShufflearray
0 likes · 3 min read
Using PHP shuffle() Function to Randomly Reorder Array Elements
php Courses
php Courses
Jul 30, 2023 · Operations

How to Schedule Automatic Backups for PHP Websites on CentOS

This guide explains three practical methods—using crontab, rsync, and mysqldump—to set up scheduled backups of PHP website files and databases on a CentOS server, ensuring data protection through automated daily or periodic tasks.

CentOSLinuxPHP
0 likes · 4 min read
How to Schedule Automatic Backups for PHP Websites on CentOS
php Courses
php Courses
Jul 29, 2023 · Databases

Using SQLite with PHP: Comparison with MySQL and Practical Code Examples

This article compares SQLite and MySQL, outlines SQLite’s advantages and disadvantages, describes scenarios where SQLite is appropriate, and provides a step‑by‑step PHP tutorial with complete code for connecting, creating tables, inserting, querying, updating, deleting, and closing an SQLite database.

MySQLPHPSQLite
0 likes · 8 min read
Using SQLite with PHP: Comparison with MySQL and Practical Code Examples
php Courses
php Courses
Jul 28, 2023 · Backend Development

Using PHP's http_build_query() to Build URL Query Strings

This article explains how PHP's http_build_query() function converts associative arrays or objects into properly encoded URL query strings, covering basic usage, handling of multidimensional arrays, objects, and special characters with clear code examples.

BackendPHPURL
0 likes · 4 min read
Using PHP's http_build_query() to Build URL Query Strings
php Courses
php Courses
Jul 28, 2023 · Backend Development

Parsing and Generating XML Files in PHP

This article explains how to use PHP's built-in XML extension to parse XML files into a DOM tree and to generate XML documents programmatically, providing step‑by‑step code examples for loading, traversing, creating elements, setting attributes, and saving the resulting XML files.

DOMPHPgeneration
0 likes · 4 min read
Parsing and Generating XML Files in PHP
php Courses
php Courses
Jul 28, 2023 · Backend Development

Developing Stable and Reliable API Interfaces with ThinkPHP6

This tutorial explains how to design request/response structures, configure routing, implement controllers, perform parameter validation, and handle exceptions when building robust API endpoints using the ThinkPHP6 framework, complete with practical code examples.

APIBackendPHP
0 likes · 6 min read
Developing Stable and Reliable API Interfaces with ThinkPHP6
php Courses
php Courses
Jul 27, 2023 · Backend Development

Understanding PHP's array_values() Function: Syntax, Usage, and Examples

This article explains PHP's array_values() function, detailing its syntax, how it reindexes array values, and provides practical examples for associative, indexed, and multidimensional arrays, demonstrating its usefulness in extracting and handling array data in backend development.

PHParray_values
0 likes · 4 min read
Understanding PHP's array_values() Function: Syntax, Usage, and Examples
php Courses
php Courses
Jul 27, 2023 · Backend Development

Extracting and Creating RAR and ZIP Archives with PHP

This article explains how to use PHP's RarArchive and ZipArchive classes to extract RAR and ZIP files, create ZIP archives, and compress folders into RAR archives, providing step‑by‑step code examples and detailed explanations for each operation.

PHPfile compressionrar
0 likes · 7 min read
Extracting and Creating RAR and ZIP Archives with PHP
php Courses
php Courses
Jul 26, 2023 · Backend Development

Using PHP's array_rand Function to Randomly Select Array Elements

This article explains the PHP array_rand function, its syntax, and demonstrates how to retrieve a single random key, multiple random keys, or a random element from an array with clear code examples and optional parameter usage.

PHParray_randrandom selection
0 likes · 5 min read
Using PHP's array_rand Function to Randomly Select Array Elements
php Courses
php Courses
Jul 25, 2023 · Backend Development

Using PHP cURL to Send Concurrent Requests to Multiple URLs

This article explains how to enable the PHP cURL extension, create an array of target URLs, and use curl_multi functions with example code to perform concurrent HTTP requests and collect their responses efficiently.

Concurrent RequestsPHPWeb Scraping
0 likes · 6 min read
Using PHP cURL to Send Concurrent Requests to Multiple URLs
php Courses
php Courses
Jul 24, 2023 · Backend Development

Using PHP's array_sum() Function to Sum Array Elements

This article explains PHP's array_sum() function, detailing its syntax, required parameters, return values, a practical code example, and important usage notes such as handling empty arrays and non‑numeric elements, helping developers reliably sum numeric values within arrays.

FunctionPHPTutorial
0 likes · 3 min read
Using PHP's array_sum() Function to Sum Array Elements
php Courses
php Courses
Jul 24, 2023 · Artificial Intelligence

Image Edge Enhancement Using PHP and OpenCV

This article explains how to perform image edge enhancement by installing PHP and the OpenCV library, importing images, invoking OpenCV functions, selecting edge detection algorithms such as Sobel or Canny, processing the image with custom code, and displaying or saving the enhanced result.

Edge DetectionOpenCVPHP
0 likes · 5 min read
Image Edge Enhancement Using PHP and OpenCV
php Courses
php Courses
Jul 22, 2023 · Backend Development

How to Use the PHP array_search() Function

This tutorial explains the PHP array_search() function, covering its basic syntax, optional strict mode, searching within multidimensional arrays, and using an offset to find values after a specific position, complete with clear code examples for each scenario.

PHParray_searchmultidimensional array
0 likes · 6 min read
How to Use the PHP array_search() Function
php Courses
php Courses
Jul 21, 2023 · Backend Development

Using PHP's array_diff() Function to Compute Array Differences

This article explains how PHP's array_diff() function works, detailing its syntax, parameters, return value, and providing three practical code examples that demonstrate computing array differences for indexed and associative arrays in various.

Code ExamplesPHParray-diff
0 likes · 4 min read
Using PHP's array_diff() Function to Compute Array Differences
php Courses
php Courses
Jul 21, 2023 · Artificial Intelligence

Image Segmentation with PHP and OpenCV

This tutorial explains how to perform image segmentation using the OpenCV library in PHP, covering environment setup, library import, image loading, grayscale conversion, thresholding, result display, and saving the segmented output.

OpenCVPHPcomputer vision
0 likes · 4 min read
Image Segmentation with PHP and OpenCV
php Courses
php Courses
Jul 18, 2023 · Backend Development

Using PHP array_slice() Function: Basics, Syntax, and Practical Tips

This article explains the PHP array_slice() function, covering its basic syntax, practical examples for extracting sub‑arrays, using negative offsets, selecting specific keys with array_flip and array_intersect_key, and removing elements via array_splice, providing clear code snippets and output demonstrations.

Backend DevelopmentCode ExamplesPHP
0 likes · 5 min read
Using PHP array_slice() Function: Basics, Syntax, and Practical Tips
php Courses
php Courses
Jul 18, 2023 · Backend Development

Understanding and Using PHP's array_merge() Function

This article explains PHP's array_merge() function, its syntax, provides multiple code examples for merging two or more arrays, and highlights key considerations such as key overwriting when duplicate keys are present in PHP.

Code ExamplesPHParray merge
0 likes · 3 min read
Understanding and Using PHP's array_merge() Function
php Courses
php Courses
Jul 18, 2023 · Artificial Intelligence

Implementing Face Recognition with PHP and OpenCV

This article provides a step‑by‑step tutorial on installing OpenCV and the PHP OpenCV extension on Ubuntu, then demonstrates how to write PHP code for face detection and recognition using OpenCV's cascade classifier and FisherFaceRecognizer, complete with example scripts and usage instructions.

OpenCVPHPcomputer vision
0 likes · 7 min read
Implementing Face Recognition with PHP and OpenCV
php Courses
php Courses
Jul 17, 2023 · Artificial Intelligence

Implementing Facial Landmark Detection with PHP and OpenCV

This tutorial demonstrates how to set up PHP and OpenCV, install necessary libraries, write and run a PHP script that detects faces and extracts facial landmarks, and saves the annotated image, providing a practical introduction to facial landmark detection in computer vision.

Facial Landmark DetectionOpenCVPHP
0 likes · 5 min read
Implementing Facial Landmark Detection with PHP and OpenCV
php Courses
php Courses
Jul 17, 2023 · Backend Development

Understanding PHP's array_combine() Function: Syntax, Use Cases, and Code Examples

This article explains PHP's array_combine() function, detailing its syntax, parameters, return values, error handling, and demonstrates multiple practical applications such as creating and updating associative arrays, processing form data, and converting two‑dimensional arrays, with complete code examples.

Code ExamplesPHParray_combine
0 likes · 4 min read
Understanding PHP's array_combine() Function: Syntax, Use Cases, and Code Examples
Laravel Tech Community
Laravel Tech Community
Jul 16, 2023 · Backend Development

Creating Export Classes and Exporting Data with Laravel Excel (Lysice XlsWriter)

This tutorial explains how to generate export classes in Laravel, implement array, query, or collection exports, customize column headers, download files directly, specify file names, formats, response headers, store exports to disk, set document options, and reuse exports with traits, all using the Lysice XlsWriter package.

Backend DevelopmentExcel ExportLaravel
0 likes · 4 min read
Creating Export Classes and Exporting Data with Laravel Excel (Lysice XlsWriter)
php Courses
php Courses
Jul 14, 2023 · Backend Development

Image Cropping with PHP GD Library: Step‑by‑Step Guide

This article explains how to use PHP's GD library to verify its installation, define source and target dimensions, create a new image, crop the original using imagecopyresampled, save the result, and release resources, providing a complete step‑by‑step guide for image cropping in backend development.

GD libraryImage CroppingPHP
0 likes · 4 min read
Image Cropping with PHP GD Library: Step‑by‑Step Guide
php Courses
php Courses
Jul 13, 2023 · Backend Development

How to Keep Two Decimal Places in PHP Using round(), sprintf() and number_format()

This tutorial demonstrates three PHP techniques—round(), sprintf(), and number_format()—to format numbers with exactly two decimal places, explains the number_format() function syntax and parameters, and provides practical examples for displaying product prices with customizable decimal points and thousand separators.

DecimalFormattingPHP
0 likes · 5 min read
How to Keep Two Decimal Places in PHP Using round(), sprintf() and number_format()
php Courses
php Courses
Jul 12, 2023 · Backend Development

Using strpos() and strrpos() Functions to Detect Substrings in PHP

These PHP tutorials demonstrate how to use the strpos() and strrpos() functions to detect the presence and position of characters in strings, explaining return values, providing complete code examples, and offering additional learning resources for backend development.

PHPString Functionsstrpos
0 likes · 4 min read
Using strpos() and strrpos() Functions to Detect Substrings in PHP
php Courses
php Courses
Jul 12, 2023 · Backend Development

PHP Functions for Recursively Deleting Files and Directories

This article provides PHP code examples for recursively removing files and folders, explains the use of unlink() and rmdir() functions, and demonstrates how to delete all ".svn" directories along with their contents.

BackendFile SystemPHP
0 likes · 3 min read
PHP Functions for Recursively Deleting Files and Directories
php Courses
php Courses
Jul 12, 2023 · Backend Development

Prevent Duplicate Remote Image Saving in PHP by Generating Unique Filenames

To prevent storing duplicate remote images on a PHP server, this guide explains two techniques—generating a unique filename from the image URL or from the image content using MD5 hashing—along with complete PHP code examples that check for existing files before saving.

BackendPHPduplicate prevention
0 likes · 5 min read
Prevent Duplicate Remote Image Saving in PHP by Generating Unique Filenames