Answers for "replace a string method php js"

PHP
1

php replace string

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

replace php

str_replace('a', 'b', 'hello a')
Posted by: Guest on December-01-2021

Browse Popular Code Answers by Language