Here is simple function to generate slug in php. You can copy paste this function and generate slug by passing string in it.

🙂

Posted in: PHP