0

I am using slugify to generate the users slug but I want to remove dashes, dots, spaces and every type character that would be considered a separator.

Paulo Coghi
  • 13,724
  • 14
  • 68
  • 90

1 Answers1

0

This is possible changing the default separator to an empty string, so this:

echo $slugify->slugify('A strange.example_user-name', '');

Will return this:

astrangeexampleusername
Paulo Coghi
  • 13,724
  • 14
  • 68
  • 90