AthensFramework/core

View on GitHub
doc/api/Athens-Core-Etc-StringUtils.md

Summary

Maintainability
Test Coverage
Athens\Core\Etc\StringUtils
===============

Class StringUtils is a static class to provide string manipulation utilities




* Class name: StringUtils
* Namespace: Athens\Core\Etc







Methods
-------


### slugify

    string Athens\Core\Etc\StringUtils::slugify(string $string)

Turn a string into a slug



* Visibility: **public**
* This method is **static**.


#### Arguments
* $string **string**



### toTitleCase

    string Athens\Core\Etc\StringUtils::toTitleCase(string $string)

Format a string into title case



* Visibility: **public**
* This method is **static**.


#### Arguments
* $string **string**



### toUpperCamelCase

    string Athens\Core\Etc\StringUtils::toUpperCamelCase(string $string)

Format a string into upper camel case



* Visibility: **public**
* This method is **static**.


#### Arguments
* $string **string**



### formatDollars

    string Athens\Core\Etc\StringUtils::formatDollars(mixed $number)

Format a number as dollars, with grouped thousands.



* Visibility: **public**
* This method is **static**.


#### Arguments
* $number **mixed**