It seems it will not work mb_split. How to add UTF-8 encoding to this option? You have used mb_internal_encoding('UTF-8'); mb_regex_encoding('UTF-8'); Is this still the same or better option?
whitespace
1:28 pm on Oct 6, 2015 (gmt 0)
I'm not sure to be honest. The problem with explode() is that it works on bytes. If $data is a multi-byte string (which it would seem to be from your initial code snippet) then it might break.