Question : transform text to lowercase and replace space with dash php
Answered by : shubham-twvfvblalfuc
$str = 'hello have a good day everyone';
echo str_replace(' ', '-', strtolower($str));
Source : https://www.tutorialspoint.com/convert-spaces-to-dash-and-lowercase-with-php | Last Update : Sat, 01 May 21