PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Nahid Bin Azhar  >  PHP JSON Database Library  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP JSON Database Library
Perform queries on a JSON file database
Author: By
Last change:
Date: 2 years ago
Size: 447 bytes


Class file image Download
require_once 'jsonx.php';

$json=new JSONX('db/data.json');

//to save data in data.json file

'id'=>1, 'name'=>'Nokia'],
'id'=>2, 'name'=>'iPhone'],
'id'=>3, 'name'=>'Samsung']


$json->node('home:product:items')->where('id', '=', 2)->fetch();
//echo $json->node('home:title')->fetch();

For more information send a message to info at phpclasses dot org.