Re: [Discussion] Introducing str_mask() for partial string masking

From: Date: Fri, 19 Jun 2026 00:39:21 +0000
Subject: Re: [Discussion] Introducing str_mask() for partial string masking
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-131396@lists.php.net to get a copy of this message
You may like to demonstrate a few existing approaches which are prone to breakage. 3v4l.org/36DtC You might like to expose framework implementations and how your proposal aligns/differs from their implementations. Points of clarification... When obfuscating/redacting, sometimes I intentionally avoid a one-to-one replacement of characters. Might your function somehow offer that flexibility? stackoverflow.com/questions/43762251 What happens if the number of targeted characters in the input string is fewer than the range that the offset and length parameters represent? Will the input string increase in length or stay the same multibyte length? mickmackusa

« previous php.internals (#131396) next »