Answers for "php strings functions to change"

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

php replace string

str_replace ($needle, $replacement, $haystack);
Posted by: Guest on March-28-2021

Browse Popular Code Answers by Language