InflectorInterface
in
Inflector interface used to convert the casing of words
Table of Contents
Methods
- camel() : string
- Converts strings from snake_case to upper CamelCase
- snake() : string
- Converts strings from camel case to snake case (e.g. CamelCase camel_case).
Methods
camel()
Converts strings from snake_case to upper CamelCase
public
camel(string $word) : string
Parameters
- $word : string
-
Value to convert into upper CamelCase
Return values
stringsnake()
Converts strings from camel case to snake case (e.g. CamelCase camel_case).
public
snake(string $word) : string
Parameters
- $word : string
-
Word to convert to snake case