![]() |
easy and quick PHP question
i have 2 strings:
string 1: "aaabbbccc" string 2: "bbb" what is the function to substract string 2 from string 1 and obtain a new string 3: "aaaccc" ?? |
|
$new_string = str_replace($string_to_remove,"",$original_string) ;
|
Quote:
|
All times are GMT -7. The time now is 10:33 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123