When storing an array in a file, I implode it with a delimiter, but if any of the values had the delimiter in it, then this would destroy that value (and give me 2 smaller ones).
Is it good practice to use non-printable characters as a delimiter? And if so, how to do that?
It used to be a practice in the 80s. Specifically the ASCII charset had some non-printable symbols just for that very purpose.
You could use them like
"\036"in PHP, and later split up by them. But JSON or phps serialize() format or even XML are more advisable for webapps than a binary format.