W
W
Web Lizard2016-01-19 18:48:51
PHP
Web Lizard, 2016-01-19 18:48:51

How to form a json object from an array of php functions?

Well, there is, for example

function export($include_headers = true) {
    $res = '';
    if ($include_headers) {
      $res .= $this->export_headers();
      $res .= "\n\n";
    }
    $res .= $this->export_entries();
    return $res;
  }

How is it to parse an object into JSON in order to display data and so that the array is generally multi-layered?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
eclipse20, 2016-01-19
@eclipse20

json_encode()?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question