Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php replace space with dash

<?php 
  $string = "hello php";
  $replace = str_replace(" ", "_", $string);
  echo $replace; // hello_php
?>
 
PREVIOUS NEXT
Tagged: #php #replace #space #dash
ADD COMMENT
Topic
Name
7+2 =