Suppose I don't have access to a database server. I have any indexed array of like keyed arrays, essentially mimicing a database table. Are there any libraries or functions that I can use to 'query' the array in a SQL like manner ?
e.g. $data = array (array(a=>1,b=>2,c=>3) ,array(a=>2,b=>3,c=>4) ,array(a=>3,b=>4,c=>5) ); I would like to be able to do $subset = arraysql_query ($data, "where a>=3"); instead of $subset = array(); foreach ($data as $dat) { if ($dat['a'] >= 3) $subset[]=$dat; } -- Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php