How to replace a string in php by using substr_replace | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to replace a string in php by using substr_replace

Suppose I have a string AAABBBCCAAABBCCABVSAAA so using substr_replace what should be the code to replace AAA BY KKK?

26th Nov 2020, 5:18 AM
rane harish
rane harish - avatar
2 Answers
+ 5
rane harish Hello,Visit this site,here shown how to use substr_replace function...with example... https://www.google.com/amp/s/www.geeksforgeeks.org/php-substr_replace-function/amp/
26th Nov 2020, 5:25 AM
ㅤㅤㅤ
0
Hi, simply check these 4 easy methods to replace string characters in PHP, you will see 4 different functions in detail https://www.webcodzing.com/replace-string-in-php/
10th Apr 2023, 4:41 AM
khan0321