Str
in package
String manipulation utility class.
Provides common string transformation methods for the Canvas LMS SDK.
Table of Contents
Methods
- toSnakeCase() : string
- Convert a string from camelCase or PascalCase to snake_case.
Methods
toSnakeCase()
Convert a string from camelCase or PascalCase to snake_case.
public
static toSnakeCase(string $string) : string
Parameters
- $string : string
-
The string to convert
Return values
string —The converted string in snake_case format