Skip to content

CastTypes - true/false converting #6

@f3l1x

Description

@f3l1x
$str = "true";
$bool = !in_array($str, array("false", "", "0", "no", "off"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Triage: Now

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions