php: convert string to slug

there’s no standard slug function in php. most softwares nowadays comes with function to slug-ify a string to format seo friendly url. but working on a standalone program, this is …

MySQL: Get domain name from url string

I need to run a report of URLs¬†stored in mysql database which shows the domain and the count. How to extract the domain or subdomin from the full url string …