/**
 * Reverses string.
 *
 * @return self Returns instance of The Strings class.
 */
public function reverse(): self

Examples

$string = Strings::create('SG-1 returns from an off-world mission')->reverse();

echo $string;

The above example will output:

noissim dlrow-ffo na morf snruter 1-GS

Getting Started

Methods