To::upper()

Converts current value to upper case.

Table of Contents
  1. Description
  2. Example

Description

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

This method converts current value to upper case. This method is an alias for function u().

Example

$value = To::upper(""); // Returns `null`
$value = To::upper('!@#$%^&*()'); // Returns `'!@#$%^&*()'`
$value = To::upper(" \n\r\t"); // Returns `" \n\r\t"`
$value = To::upper('foo bar baz'); // Returns `'FOO BAR BAZ'`
$value = To::upper('FOO BAR BAZ'); // Returns `'FOO BAR BAZ'`
$value = To::upper('Foo Bar Baz'); // Returns `'FOO BAR BAZ'`
$value = To::upper('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::path()

Converts public URL to private file path.

To::upper()

Converts current value to upper case.