|
TokyoTyrantQuery::addCondAdds a condition to the query Description
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. Parameters
Return ValuesThis method returns the current object and throws TokyoTyrantException on failure. Examples
Example #1 TokyoTyrantQuery::addCond example
<?phpThe above example will output:
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"
}
}
See Also
|