Answers for "how to replace space iwth dash php"

PHP
3

artisan make auth

composer require laravel/ui
php artisan ui vue --auth
Posted by: Guest on March-20-2020
2

php replace spaces with dash

str_replace(' ', '-', $string);
Posted by: Guest on May-21-2020
1

php replace space with dash

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

Code answers related to "how to replace space iwth dash php"

Browse Popular Code Answers by Language