Answers for "php lower case and replace spacer for dash"

PHP
3

artisan make auth

composer require laravel/ui
php artisan ui vue --auth
Posted by: Guest on March-20-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
0

transform text to lowercase and replace space with dash php

$str = 'hello have a good day everyone';
echo str_replace(' ', '-', strtolower($str));
Posted by: Guest on April-24-2021

Browse Popular Code Answers by Language