0
$startplushowmany=$startfrom+$howmany; //$startplush is 40
$cursor=$cursor->limit($startplushowmany);
$numberReturned=$cursor->count(); //$numberReturned is 45
我無法向您顯示$ cursor的內容,因爲$ cursor沒有實現_toString。請讓我知道如何去做。
現在$ cursor中的查詢由此命令定義: $ cursor = $ collection-> find($ rangeQuery,$ field);
其中$ rangeQuery是
(string:592) Array
(
[LongitudeLatitude] => Array
(
[$within] => Array
(
[$center] => Array
(
[0] => Array
(
[0] => 106.772835
[1] => -6.186753
)
[1] => 0.044983732050783
)
)
)
[indexContents] => bas
[Prominent] => Array
(
[$gte] => 15
)
)
和
$場
(string:39) Array
(
[LongitudeLatitude] => 1
)
哪裏是PHP的文檔? –
爲PHP文檔添加鏈接。 – DhruvPathak