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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As long as your delimiter and the strings in the array contain only well-formed multibyte sequences there should not be any issues.
implodebasically is a fancy concatenation operator and I couldn’t imagine a scenario where concatenation is not multibyte safe 😉