FIx in linux
This commit is contained in:
parent
6801687089
commit
a02ce657f5
1 changed files with 15 additions and 0 deletions
15
vendor/phangoapp/cuchuluphputils/src/Linux.php
vendored
15
vendor/phangoapp/cuchuluphputils/src/Linux.php
vendored
|
|
@ -323,5 +323,20 @@ class Linux {
|
|||
return $password_final;
|
||||
|
||||
}
|
||||
|
||||
//From https://www.geeksforgeeks.org/php/php-program-to-convert-title-to-url-slug/
|
||||
|
||||
static public function simple_slug($str) {
|
||||
|
||||
$str=strtolower($str);
|
||||
|
||||
$str=preg_replace('/[^a-z0-9]+/', '-', $str);
|
||||
|
||||
$str=trim($str, '-');
|
||||
|
||||
return $str;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue