Tag

string-manipulation

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Jan 15, 2024 · Backend Development

PHP str_replace() Function: Basic and Advanced Usage

This article explains the PHP str_replace() function, covering its syntax, basic string replacement, handling multiple replacements with arrays, case‑insensitive alternatives, and how to retrieve the number of replacements performed.

backendphp tutorialstr_replace
0 likes · 5 min read
PHP str_replace() Function: Basic and Advanced Usage
php中文网 Courses
php中文网 Courses
Sep 15, 2023 · Backend Development

Understanding PHP's htmlentities() Function: Syntax, Usage, and Security Considerations

This article explains the PHP htmlentities() function, covering its syntax, parameters, practical code examples for converting special characters to HTML entities, and important security tips such as preventing HTML injection attacks, making it essential for backend developers.

backendhtmlentitiesphp
0 likes · 6 min read
Understanding PHP's htmlentities() Function: Syntax, Usage, and Security Considerations
php中文网 Courses
php中文网 Courses
Aug 23, 2023 · Backend Development

Using PHP substr_replace() to Replace or Insert Substrings

This article explains the PHP substr_replace() function, its syntax, parameters, and demonstrates how to replace characters, replace substrings, and insert strings at the beginning, end, or middle of a string using practical code examples.

string-manipulationsubstr_replacetutorial
0 likes · 4 min read
Using PHP substr_replace() to Replace or Insert Substrings
Laravel Tech Community
Laravel Tech Community
Aug 29, 2020 · Backend Development

PHP rtrim() Function: Removing Trailing Characters

This article explains the PHP rtrim() function, describing how it removes trailing whitespace or specified characters from a string, detailing its parameters and return value, and providing multiple code examples that demonstrate typical usage and edge‑case handling.

backendrtrimstring-manipulation
0 likes · 3 min read
PHP rtrim() Function: Removing Trailing Characters