G
G
G F2021-12-21 19:41:27
PHP
G F, 2021-12-21 19:41:27

How to make json with line wrapping in php?

I have a json config (on the first screen), how to make it so that it would be like on the second (that is, with line breaks)61c2039576f0f467107382.jpeg
61c2038c6168a013479327.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2021-12-21
@MrGumer

https://www.php.net/manual/en/function.json-encode.php
json_encode(mixed $value, JSON_PRETTY_PRINT);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question