Answers for "transform text to lowercase and replace space with dash php"

PHP
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

Code answers related to "transform text to lowercase and replace space with dash php"

Browse Popular Code Answers by Language