Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Wednesday, May 9, 2012
PHP: is the implode() function safe for multibyte strings?
The explode() function has a correlating multibyte-safe function in mb_split() .
I don't see a correlating function for implode() . Does this imply that implode is already safe for multibyte strings?
As long as your delimiter and the strings in the array contain only well-formed multibyte sequences there should not be any issues.
ReplyDeleteimplode basically is a fancy concatenation operator and I couldn't imagine a scenario where concatenation is not multibyte safe ;)