\Pop\FilterConvertCase

Filter convert case class

Summary

Methods
Properties
Constants
camelCaseToDash()
camelCaseToSeparator()
camelCaseToUnderscore()
dashToCamelcase()
dashToSeparator()
dashToUnderscore()
underscoreToCamelcase()
underscoreToDash()
underscoreToSeparator()
No public properties found
No constants found
convertCamelCase()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

camelCaseToDash()

camelCaseToDash(string  $string) : string

Convert the string from camelCase to dash format

Parameters

string $string

Returns

string

camelCaseToSeparator()

camelCaseToSeparator(string  $string, string  $sep = DIRECTORY_SEPARATOR) : string

Convert the string from camelCase to separator format

Parameters

string $string
string $sep

Returns

string

camelCaseToUnderscore()

camelCaseToUnderscore(string  $string) : string

Convert the string from camelCase to under_score format

Parameters

string $string

Returns

string

dashToCamelcase()

dashToCamelcase(string  $string) : string

Convert the string from dash to camelCase format

Parameters

string $string

Returns

string

dashToSeparator()

dashToSeparator(string  $string, string  $sep = DIRECTORY_SEPARATOR) : string

Convert the string from dash to separator format

Parameters

string $string
string $sep

Returns

string

dashToUnderscore()

dashToUnderscore(string  $string) : string

Convert the string from dash to under_score format

Parameters

string $string

Returns

string

underscoreToCamelcase()

underscoreToCamelcase(string  $string) : string

Convert the string from under_score to camelCase format

Parameters

string $string

Returns

string

underscoreToDash()

underscoreToDash(string  $string) : string

Convert the string from under_score to dash format

Parameters

string $string

Returns

string

underscoreToSeparator()

underscoreToSeparator(string  $string, string  $sep = DIRECTORY_SEPARATOR) : string

Convert the string from under_score to separator format

Parameters

string $string
string $sep

Returns

string

convertCamelCase()

convertCamelCase(string  $string, string  $sep) : string

Convert a camelCase string using the $sep value passed

Parameters

string $string
string $sep

Returns

string