|
TokyoTyrantQuery::searchSearches records Beschreibung
public array TokyoTyrantQuery::search
( void
)
Executes a search on the table database. Returns an array of arrays containing the matching records. In the returned array the first level is the primary key of the data and the second level is the row data. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteReturns the matching rows and throws TokyoTyrantException on error Beispiele
Beispiel #1 TokyoTyrantQuery::search example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
array(2) {
[1]=>
array(2) {
["column1"]=>
string(9) "some data"
["column2"]=>
string(14) "something here"
}
[4]=>
array(2) {
["column45"]=>
string(11) "random data"
["column2"]=>
string(25) "something along the lines"
}
}
Siehe auch
|