Skip to content

Optimization idea: optimize str_{starts|ends}_with() with a 1 byte needle string to $haystack[{0|-1}] === $needle #23476

Description

@Girgias

Description

Thought about when seeing the following post: https://phpc.social/@linc/117163847782802693

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions