1 | <?php |
||
5 | class CamelCase |
||
6 | { |
||
7 | /** |
||
8 | * Given an underscore_separated_string, this will convert the string |
||
9 | * to CamelCaseNotation. Note that this will ignore any casing in the |
||
10 | * underscore separated string. |
||
11 | * |
||
12 | * @param string $strString |
||
13 | * @return string |
||
14 | */ |
||
15 | public static function convertToCamelCase($strString) { |
||
18 | |||
19 | public static function underscoreFromCamelCase($strName) { |
||
34 | |||
35 | /** |
||
36 | * Returns the first character of a given string, or null if the given |
||
37 | * string is null. |
||
38 | * @param string $strString |
||
39 | * @return string the first character, or null |
||
40 | */ |
||
41 | public final static function firstCharacter($strString) { |
||
47 | |||
48 | |||
49 | public static function pluralize($strName) { |
||
72 | |||
73 | } |