PHP Classes

File: helpers/jsonq.php

Recommend this page to a friend!
  Classes of Nahid Bin Azhar   PHP JSON Query   helpers/jsonq.php   Download  
File: helpers/jsonq.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP JSON Query
Query JSON data to find and extract information
Author: By
Last change:
Date: 11 days ago
Size: 280 bytes
 

Contents

Class file image Download
<?php

if (!function_exists('jsonq')) {
    function
jsonq($jsonData)
    {
        if (!
is_string($jsonData)) throw new \Nahid\QArray\Exceptions\InvalidJsonException();

       
$json = new Nahid\JsonQ\Jsonq();
        return
$json->collect($json->parseData($jsonData));
    }
}