Skip to content

mb_strwidth behavior changed #1778

Open
@logistiker

Description

@logistiker

Due to this commit, the documentation for mb_strwidth should be changed: php/php-src@d8c785b?

This function now returns the proper width of a multibyte string starting with php 8.1. For example:

For php <= 8.0:

echo mb_strwidth('🏆');

returns: 1

For php >= 8.1:

echo mb_strwidth('🏆');

returns: 2

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