sql4array: Query PHP arrays using an SQL dialect

Recommend this page to a friend!
  Info   View files (2)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
61%Total: 854 All time: 4,049 This week: 251
Version License PHP version Categories
sql4array 0.0.3GNU Lesser Genera...5.0.0PHP 5, Databases, Data types
Description Author

This class can be used to query PHP arrays using an SQL dialect.

It can execute SQL SELECT queries on bi-dimensional array on which the first dimension is the row number and the second dimension the field names.

The class supports the WHERE clause to specify conditions using operators like =, >, <, LIKE, IN, etc..

The results are returned as arrays and can be sorted with the ORDER clause and restricted with the clause LIMIT.

Innovation Award
PHP Programming Innovation award nominee
May 2007
Number 3
Arrays are often used in PHP applications to store complex information structures.

Retrieving information from complex arrays may require a lot of hand-written code.

This class provides a surprisingly simple solution that consists of using a SQL-like language to query and retrieve information from arrays as if those are relational databases.

Manuel Lemos
Picture of Sylvain Rabot
Name: Sylvain Rabot <contact>
Classes: 6 packages by
Country: United States United States
Age: 33
All time rank: 27432 in United States United States
Week rank: 131 12 in United States United States
Innovation award
Innovation award
Nominee: 3x

  Files  
File Role Description
sql4array.class.php Class Main class
sql4array.example.php Example Example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:854
This week:0
All time:4,049
This week:251
 User Ratings  
 
 All time
Utility:87%
Consistency:87%
Documentation:-
Examples:87%
Tests:-
Videos:-
Overall:61%
Rank:1242
  

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