PHP Classes
elePHPant
Icontem

File: Examples/MultiCol_Example

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  >  Examples/MultiCol_Example  >  Download  
File: Examples/MultiCol_Example
Role: Example script
Content type: text/plain
Description: Linq Example For MultiColumns Arrays
Class: LINQ In PHP
Query arrays with a SQL-like syntax using LINQ
Author: By
Last change: include path changed
Date: 5 years ago
Size: 703 bytes
 

Contents

Class file image Download
<?php
 
include '../D3Linq.php';
                                                
 
$myArray=array(
            array(
'name'=>'Tufan', 'surname'=>'YILDIRIM'),
            array(
'name'=>'Baris', 'surname'=>'YILDIRIM'),
            array(
'name'=>'Gokmen', 'surname'=>'Koc'),
            array(
'name'=>'Deniz', 'surname'=>'Yilmaz'),
            array(
'name'=>'Ferzan', 'surname'=>'TOKCAN'),
            array(
'name'=>'Tufan Bar&#305;&#351;','surname'=>'YILDIRIM')
  );
 
 
$db=new D3Linq();
 
 
$db->Query("SELECT name RealName,surname Surname FROM myArray");
  echo
'<pre>';
 
     while (
$ss=$db->fetch_assoc()){
        
print_r($ss);
     }
?>