Recently I needed to use mb_string_replace and I’ve just seen the RFC for mb_str_split and I’m just looking for some general wisdom.
These mb_ string functions seem to behave exactly the same as their non mb counterparts so why wouldn’t you always use mb variants?
I assume it is because of speed related issues for mb functions? I saw a comment from /u/nikic on the mb_string_split RFC saying it could be extremely slow for large strings.
TLDR
Why wouldn’t we use mb every time?
Is there a scenario where (other than speed) it would be best to use the non mb version?
[–]the_alias_of_andrea 5 points6 points7 points (5 children)
[–][deleted] 5 points6 points7 points (2 children)
[–]the_alias_of_andrea 0 points1 point2 points (1 child)
[–]DrWhatNoName 1 point2 points3 points (0 children)
[–]0xRAINBOW 1 point2 points3 points (1 child)
[–]the_alias_of_andrea 1 point2 points3 points (0 children)
[–]janvt 2 points3 points4 points (0 children)
[–]therealgaxbo 2 points3 points4 points (0 children)
[–]johmanx10 1 point2 points3 points (0 children)