Tag

substr

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
May 9, 2024 · Backend Development

Using PHP's substr() Function for String Manipulation

This article explains how to use PHP's substr() function to extract portions of a string, covering its syntax, parameters, and practical examples including specifying start positions, lengths, and negative offsets for flexible substring extraction.

PHPTutorialbackend
0 likes · 4 min read
Using PHP's substr() Function for String Manipulation
php中文网 Courses
php中文网 Courses
Apr 29, 2024 · Backend Development

Using PHP substr Function to Extract Substrings

This article explains how to use PHP's built‑in substr function to retrieve substrings by specifying start positions and lengths, covering basic syntax, parameter details, return values, and common examples such as extracting the last characters, specific ranges, and converting substrings to uppercase.

PHPTutorialbackend
0 likes · 4 min read
Using PHP substr Function to Extract Substrings
php中文网 Courses
php中文网 Courses
Aug 31, 2023 · Backend Development

PHP substr() Function: Syntax, Parameters, Return Values, and Practical Usage Examples

This article explains PHP's substr() function, covering its syntax, parameters, return values, and provides multiple code examples demonstrating how to extract, replace, and change the case of substrings; it also discusses handling of negative start positions and optional length arguments.

PHPbackend developmentcode examples
0 likes · 6 min read
PHP substr() Function: Syntax, Parameters, Return Values, and Practical Usage Examples
php中文网 Courses
php中文网 Courses
Jul 4, 2023 · Backend Development

Using substr() and mb_substr() to Extract Substrings in PHP

This article explains how PHP's substr() and mb_substr() functions work, detailing their syntax, parameter behavior for positive and negative start and length values, and provides multiple code examples demonstrating string extraction for both English and multibyte Chinese characters.

PHPbackendmb_substr
0 likes · 6 min read
Using substr() and mb_substr() to Extract Substrings in PHP
php中文网 Courses
php中文网 Courses
Jun 30, 2023 · Backend Development

10 Essential PHP String Manipulation Functions with Examples

This article introduces ten essential PHP string manipulation functions—including substr, str_replace, implode, strpos, and sprintf—explaining their purpose and providing clear code examples that demonstrate how to extract, replace, concatenate, search, split, trim, and format strings efficiently in PHP development.

PHPbackendimplode
0 likes · 5 min read
10 Essential PHP String Manipulation Functions with Examples
Laravel Tech Community
Laravel Tech Community
May 9, 2023 · Backend Development

Common PHP String Manipulation Functions and Examples

This article explains several essential PHP string functions—including substr, mb_substr, stripos with substr, and direct character indexing—providing clear code examples and output demonstrations for handling both ASCII and multibyte characters.

PHPbackendmb_substr
0 likes · 3 min read
Common PHP String Manipulation Functions and Examples
Laravel Tech Community
Laravel Tech Community
Sep 28, 2020 · Backend Development

PHP substr() Function – Description, Parameters, Return Value, and Usage Examples

This article explains PHP's substr() function, detailing its purpose, parameter rules, return values, and provides multiple code examples demonstrating positive, negative, and omitted start/length arguments as well as character access via indexing.

ExamplePHPbackend development
0 likes · 4 min read
PHP substr() Function – Description, Parameters, Return Value, and Usage Examples
Laravel Tech Community
Laravel Tech Community
Aug 18, 2020 · Backend Development

PHP substr() Function: Usage, Parameters, and Examples

This article explains PHP's substr() function, detailing its signature, parameter meanings, behavior with positive and negative start and length values, edge cases, and provides multiple code examples demonstrating how to extract substrings under various conditions.

PHPbackendphp-functions
0 likes · 5 min read
PHP substr() Function: Usage, Parameters, and Examples