^

Replace in a String

Article 57 in PHP

<< Back
2020-11-07 16:02:41 from bugfish
Replace in a String
PHP / String Operations
Last Review on: 2022-08-08 02:05:05 | Hits: 552
Example of replacing a sign in a string (works with more than one sign)
 
$newstring = str_replace("TEXT", "NEW TEXT", $initialstring);
I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.

Comments

Currently 2 Upvotes!

captcha image
System - 2022-08-17 03:19:16
Thanks for visiting my page and have a nice day!
Staff may be in trouble!
Theme
Switch: NONE | Arrive: NONE
This Website is using Session Cookies for Site Functionality and AWStats.