I'm new to PHP and I've been searching all day how to do this, but how would I make it so that when a user inputs info into a database
It pulls the data as "blah-bah"
Instead of "Blah Blah"
echo strtolower(str_replace(' ', '-', 'Blah Blah'));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.