|
TokyoTyrantQuery::addCondAdds a condition to the query Beschreibung
public mixed TokyoTyrantQuery::addCond
( string
$name
, int $op
, string $expr
)Adds a condition to the query. Condition can be something like: get all keys which value matches expr. Parameter-Liste
RückgabewerteThis method returns the current object and throws TokyoTyrantException on failure. Beispiele
Beispiel #1 TokyoTyrantQuery::addCond 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
|