/**
 * Convert the given string to upper-case.
 *
 * @return self Returns instance of The Strings class.
 */
public function upper(): self

Examples

$string = Strings::create('SG-1 returns from an off-world mission to P9Y-3C3')->upper();

echo $string;

The above example will output:

SG-1 RETURNS FROM AN OFF-WORLD MISSION TO P9Y-3C3

Getting Started

Methods