Answers for "replace in character in php"

PHP
6

php replace return character

$string = str_replace("n", "", $string);
$string = str_replace("r", "", $string);
Posted by: Guest on May-14-2020
0

Replace String in PHP

phpCopy<?php
$mystring = "This is my string.";
echo("This is the string before replacement: ");
echo($mystring);
echo("n");
$mynewstring = str_replace(" my ", " ", $mystring);
echo("Now, this is the string after replacement: ");
echo($mynewstring);
?>
Posted by: Guest on April-23-2021
0

string replace in php

str_replace in PHP
Posted by: Guest on June-04-2021

Code answers related to "replace in character in php"

Browse Popular Code Answers by Language