If no separator is given, the function will attempt to split the
input string by spaces, hyphens, or underscores, in that order of
priority. If none of those characters are found, splits the string
as if it were camelCase/PascalCase.
If that isn't good enough, pass in an explicit separator as the
last parameter. To force the function to split words by
camelCase/PascalCase rules (i.e. when an uppercase letter is
encountered), pass the empty string "" as the separator.
Convert a string to the given case.
If no separator is given, the function will attempt to split the input string by spaces, hyphens, or underscores, in that order of priority. If none of those characters are found, splits the string as if it were camelCase/PascalCase.
If that isn't good enough, pass in an explicit separator as the last parameter. To force the function to split words by camelCase/PascalCase rules (i.e. when an uppercase letter is encountered), pass the empty string "" as the separator.