/**
 * Returns true if the string is a number or a numeric strings, false otherwise.
 *
 * @return bool Returns TRUE on success or FALSE otherwise.
 */
public function isNumeric(): bool

Examples

if (Strings::create('42')->isNumeric()) {
    // do something...
}

Getting Started

Methods