Answers for "php str replace with character code"

PHP
6

php replace return character

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

php replace string

<?php 
  $string = "Hello PHP";
  $replace = str_replace("PHP", "JS", $string);
  echo $replace; // Hello JS
?>
Posted by: Guest on June-18-2021

Browse Popular Code Answers by Language