Re: [Discussion] Proposal: grapheme_mask() helper function

From: Date: Thu, 25 Jun 2026 05:58:58 +0000
Subject: Re: [Discussion] Proposal: grapheme_mask() helper function
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-131524@lists.php.net to get a copy of this message
On 19.06.26 17:51, سپهر محمودی wrote:
While thinking about this problem, I designed a function concept called grapheme_mask(). The goal of this function is to provide a clear, native, and Unicode‑safe way to mask sections of a string. Best regards, Sepehr
Hey Sepehr, Is this grapheme_mask proposal meant as a replacement for the str_mask you proposed before or as an addition? A mask function seems helpful to me. But I think this should not be exclusive to the intl extension,  and str_mask still be added, too. -- Cheers Nick

« previous php.internals (#131524) next »