Skip to content

=. #16669

@foremtehan

Description

@foremtehan

Description

I was wondering, why don’t we have an operator that performs the opposite of the concatenating assignment operator .=? This new operator could prepend a value:

$a = " World";
$a =. "Hello"; // Result: "Hello World!"

What's the problem with this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions