Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Concatenation precedence #30

@i582

Description

@i582

RFC: https://wiki.php.net/rfc/concatenation_precedence

See: https://github.com/php/php-src/pull/4002/files

Example:

echo "sum: " . $a + $b;

// PHP would previously interpret it like this:
echo ("sum: " . $a) + $b;

// PHP 8 will make it so that it's interpreted like this:
echo "sum: " . ($a + $b);

Metadata

Metadata

Assignees

No one assigned

    Labels

    PHP 8PHP 8 features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions