Login   Register  
PHP Classes
elePHPant
Icontem

File: Func_Example/json_file_Examle.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tufan Baris YILDIRIM  >  LINQ In PHP  >  Func_Example/json_file_Examle.php  >  Download  
File: Func_Example/json_file_Examle.php
Role: Example script
Content type: text/plain
Description: Select *from json_file(....
Class: LINQ In PHP
Query arrays with a SQL-like syntax using LINQ
Author: By
Last change:
Date: 4 years ago
Size: 650 bytes
 

Contents

Class file image Download
<?php                                                                                                                   
   
/**
   * @name D3Linq
   * @version v1.5.0
   * @author Tufan Baris YILDIRIM 
   * @link http://www.tufyta.com
   * D3Linq new Functions.
   *    -json_file();
   *    -xml_file(); 
   * next version
   */
    
    
include 'D3Linq.php';
    
$linq=new D3Linq();
    
    
$linq->Query("SELECT * FROM json_file(my_json_file.txt)");
    
    echo 
'<h3>SELECT * FROM json_file(my_json_file.txt)</h3><hr>';
    echo 
'<pre>';
    while (
$Post=$linq->fetch_assoc())  {
                
print_r($Post);
    }
   
?>