- print_r: documentation ( source)
- json_encode: documentation ( source)
- sprintf: documentation ( source)
<?php
$js = json_encode(array(
'_type' => 'solr',
'query' => $this->get_query(),
'offset' => $this->offset,
'limit' => $this->limit,
'sort' => $this->sort,
'coreId' => $this->core_id,
'clusterName' => $this->cluster_name,
'returnFields' => $this->return_fields,
));
print_r(sprintf('%s'), $js);