webCOMAND

query::and_where()

An alias for where().  It will perform a logical AND of any existing where clauses and the specified where clause.

Prototype

and_where(mixed $expressions): query

Parameters

See where().

Return

The updated query object is returned.  This is handy for chaining additional methods.

Example

$query->and_where('Name', '"Fred"', 'Age >=', 18);