Skip to content

Less than examples are incorrect, greater than examples are not helpful #32

@jasonestewart

Description

@jasonestewart

Thanks for the helpful new site! Some examples need tweaking.
according to tinker:

Psy Shell v0.12.15 (PHP 8.4.12 — cli) by Justin Hileman
New PHP manual is available (latest: 3.0.1). Update with doc --update-manual

2 < 3.0
= true

2 < '3.0'
= true

Your examples indicate otherwise:
2 < 3; // true
2 < '3'; // false
2 < 3.0; // false

The examples for greater than are not useful:
3 > 2; // true
2 > '2'; // false
2 > 2.0; // false

that should probably be:
3 > '2'; // true
3 > 2.0; // true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions