update : 2015.11.03
php.shukuma.com검색:
|
TokyoTyrantQuery::search(PECL tokyo_tyrant >= 0.1.0) TokyoTyrantQuery::search — Searches records 설명
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. 인수이 함수는 인수가 없습니다. 반환값Returns the matching rows and throws TokyoTyrantException on error 예제
Example #1 TokyoTyrantQuery::search() example
<?php 위 예제의 출력: 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" } } 참고
|