# StrBoolInterface

Chevere\Interfaces\Str\StrBoolInterface

view source (opens new window)

# Description

Describes the component in charge of string conditionals.

# Methods

# __construct

Parameters

  • string: string

# empty

Indicates whether the string is empty.

Return

bool


# ctypeSpace

Indicates whether the string is ctype space.

Return

bool


# ctypeDigit

Indicates whether the string is ctype digit.

Return

bool


# startsWithCtypeDigit

Indicates whether the string starts with ctype digit.

Return

bool


# startsWith

Indicates whether the string starts with $needle.

Parameters

  • needle: string

Return

bool


# endsWith

Indicates whether the string ends with $needle.

Parameters

  • needle: string

Return

bool


# same

Indicates whether the string is the same as $needle.

Parameters

  • string: string

Return

bool


Last Updated: 5/1/2021, 2:31:10 PM