Answer the question
In order to leave comments, you need to log in
What unique character to use for explode?
I connect the data I need into a string through the delimiter ";"
Further I receive:
And there was a problem that in $var2 there can be any text and there if there is a symbol ";" , then it breaks incorrectly.
What kind of unique character (or set of characters) can you come up with that will definitely not be used in the text? Or how to solve it? $getJson = sprintf("%s;%s, $var, $var2);
explode(';', $getJson);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question