fork download
  1. <?php
  2. $data = [
  3. 'item' => 'Значение',
  4. ];
  5. var_dump(json_encode($data, JSON_UNESCAPED_UNICODE));
  6.  
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
string(59) "{"item":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435"}"
string(27) "{"item":"Значение"}"