To_sentencecase

The function to_sentencecase can be used to transform the casing of a string to sentence case.

Syntax

string to_sentencecase(string $input)

Formats a string into sentence case i.e. first letter of every sentence is set to uppercase and the remaining letters are set to lowercase.

Parameters

$input: The string to transform casing.

Example

{
    "a": "change casing to sentence"
}
{
    NewString: to_sentencecase(a)
}
{
    "NewString": "Change casing to sentence"
}

In this example the casing of the string is changed to sentence case.