Files
wiosna-dev_common-library/docs/Static-methods/Regex.md
2019-04-02 21:08:11 +02:00

1.0 KiB
Raw Blame History

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"

More

  1. Base test case (with common methods and data providers)
  2. Collection of elements
  3. Templates
  4. Exceptions
  5. Static methods
    1. Arrays
    2. Regex
  6. Value Objects

Back to Readme