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を使用していますが、区切り記号と見なされるダッシュ、ドット、スペース、およびすべてのタイプ文字を削除したいと考えています。
これは、デフォルトのセパレーターを空の文字列に変更できるため、次のようになります。
echo $slugify->slugify('A strange.example_user-name', '');
これを返します:
astrangeexampleusername