/**
 * Determine whether the string is Boolean and it is TRUE.
 *
 * @return bool Returns TRUE on success or FALSE otherwise.
 */
public function isTrue(): bool

Examples

if (Strings::create('on')->isTrue()) {
    // do something...
}

Getting Started

Methods