Skip to content

Escaping \ in strings #25

@okonomiyaki3000

Description

@okonomiyaki3000

The rules for single quoted and double quoted strings differ a bit on the specifics but, in both cases, \\ is an escaped backslash but \ followed by any character that does not need to be escaped is a literal backslash. I think this can easily lead to confusion and I would suggest that the standards should require all backslashes to be escaped whether it is strictly required by PHP or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions