Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用slugify生成用户 slug,但我想删除破折号、点、空格和每个被视为分隔符的类型字符。
可以将默认分隔符更改为空字符串,因此:
echo $slugify->slugify('A strange.example_user-name', '');
将返回:
astrangeexampleusername