To::lower()

Converts current value to lower case.

Table of Contents
  1. Description
  2. Example

Description

To::lower(?string $value): ?string;

This method converts current value to lower case. This method is an alias for function l().

Example

$value = To::lower(""); // Returns `null`
$value = To::lower('!@#$%^&*()'); // Returns `'!@#$%^&*()'`
$value = To::lower(" \n\r\t"); // Returns `" \n\r\t"`
$value = To::lower('foo bar baz'); // Returns `'foo bar baz'`
$value = To::lower('FOO BAR BAZ'); // Returns `'foo bar baz'`
$value = To::lower('Foo Bar Baz'); // Returns `'foo bar baz'`
$value = To::lower('POKÉMON'); // Returns `'pokémon'`

To::URL()

Converts private file path to public URL, or decodes URL special characters.

To::entity()

Converts characters to their corresponding HTML entities.

To::file()

Converts current value to a safe file name.

To::lower()

Converts current value to lower case.

To::path()

Converts public URL to private file path.