Generate a slug of human-readable keywords
Parameters | |||
---|---|---|---|
string
|
$string |
Text to slug |
# |
string
|
$table = '' |
Table name to check in. If it is empty, no check in the table |
# |
array
|
$condition = [] |
Condition to append table check-in, e.g, |
# |
Returns | |
---|---|
string
|
The generated slug |