]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - misc/strings.php
Add the beginning of user roles
[irc/unrealircd/unrealircd-webpanel.git] / misc / strings.php
index 1fecc53c443c2fe96f9f3544faed116ee44cc5a9..25cbdba5ae7f7a4b352ca2c91840ab7c73ee6334 100644 (file)
@@ -1,5 +1,10 @@
 <?php
 
+function to_slug($str)
+{
+       return str_replace(['-', ' '], '_', strtolower($str));
+}
+
 /** Splits up a string by a space
  * (chr 32)
  *