Answer the question
In order to leave comments, you need to log in
How to remove extra values echo json_encode($erros);?
When outputting from an array with the command echo json_encode($erros);
In addition to the necessary values, it displays what.
\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043b\u043e\u0433\u0438\u043d"
This is what happens. Tell me
how to remove:
[], "", , - all these characters.
Answer the question
In order to leave comments, you need to log in
Are you sure you're a programmer? ))
These are Russian characters in Unicode.
To not encode unicode, use the JSON_UNESCAPED_UNICODE option
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question