mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 17:41:50 +01:00
Arrays > getNonEmptyValuesAsString() method > returns non-empty values concatenated by given separator
989 B
989 B
Meritoo Common Library
Common and useful classes, methods, exceptions etc.
Regex
Useful methods related to regular expressions
Class: Meritoo\Common\Utilities\Regex
File: src/Utilities/Regex.php
createSlug($value)
Returns slug for given value
Arguments
string $value- Value that should be transformed to slug
Example 1
- value: non-scalar or
null - result:
false
Example 2
- value:
""(an empty string) - result:
""(an empty string)
Example 3
- value:
"Lorem ipsum. Dolor sit 12.34 amet." - result:
"lorem-ipsum-dolor-sit-1234-amet"