Y
Y
Yanimax2018-03-23 16:39:55
PHP
Yanimax, 2018-03-23 16:39:55

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 5ab5031d439c7869963118.png
how to remove:
[], "", , - all these characters.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2018-03-23
@Yanimax

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 question

Ask a Question

731 491 924 answers to any question