|
Collection::findSearch for document Description
public mysql_xdevapi\CollectionFind mysql_xdevapi\Collection::find(string
$search_condition = ?)Search a database collection for a document or set of documents. The found documents are returned as a CollectionFind object is to further modify or fetch results from. Parameters
Return ValuesA CollectionFind object to verify the operation, or fetch the found documents. ExamplesExample #1 mysql_xdevapi\Collection::find example
The above example will output: Array ( [0] => Array ( [_id] => 00005b6b536100000000000000a8 [age] => 22 [job] => Teacher [name] => Suki ) [1] => Array ( [_id] => 00005b6b536100000000000000a7 [age] => 21 [job] => Teacher [name] => Wilma ) ) |