FOFInflector::getPart
Gets a part of a CamelCased word by index.
Use a negative index to start at the last part of the word (-1 is the last part)
Signature
public function getPart(string
$string,
[integer
$index = null,
[string
$default = null]] )
Parameters
-
$string
- Word
-
$index
- Index of the part
-
$default
- Default value
Returns
- string