|
TokyoTyrantQuery::metaSearchRetrieve records with multiple queries Description
public array TokyoTyrantQuery::metaSearch
( array
$queries
, int $type
)Executes multiple queries on a database and returns matching records. The current object is always the left most object in the search. Parameters
Return ValuesReturns the matching rows and throws TokyoTyrantException on error Examples
Example #1 TokyoTyrantQuery::metaSearch example
<?phpThe above example will output:
array(3) {
["cherry"]=>
array(1) {
["color"]=>
string(3) "red"
}
["strawberry"]=>
array(1) {
["color"]=>
string(3) "red"
}
["lemon"]=>
array(1) {
["color"]=>
string(6) "yellow"
}
}
See Also
|