Tagged articles
2 articles
Page 1 of 1
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.

Tutorialstring-manipulationsubstr_replace
0 likes · 4 min read
Using PHP substr_replace() to Replace or Insert Substrings
php Courses
php Courses
Jul 13, 2023 · Backend Development

How to Delete a Substring in PHP Using Various Functions

This article explains four PHP techniques—str_replace, substr_replace, ereg_replace, and preg_replace—for removing specific characters or patterns from a string, providing code examples and describing the resulting output for each method.

preg_replacestr_replacestring-manipulation
0 likes · 5 min read
How to Delete a Substring in PHP Using Various Functions