/**
 * Returns the character at $index, with indexes starting at 0.
 *
 * @param int $index Position of the character.
 */
public function at(int $index): self

Examples

$character = Strings::create('hello')->at(3);

echo $character;

The above example will output:

l

Getting Started

Methods