/**
 * Returns true if the string is base64 encoded, false otherwise.
 *
 * @return bool Returns TRUE on success or FALSE otherwise.
 */
public function isBase64(): bool

Examples

if (Strings::create('ZsOyw7Riw6DFmXM='))->isBase64()) {
    // do something...
}

Getting Started

Methods