/ Published in: PHP
Quick and simple script to make clean urls. Works in combination with Apache mod_rewrites :-)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function slugify($str, $replace="-") { // replace all non letters or digits by $replace // trim and lowercase return $str; } ?>