Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$title is deprecated in /home/www/dev/work/website/lvesu/class/controller/blog/php.php on line 28

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/php.manual.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\php::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
PHP - Manual: SphinxClient::setArrayResult - 互联网笔记

略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SphinxClient::setArrayResult

2025-10-04

SphinxClient::setArrayResult

(PECL sphinx >= 0.1.0)

SphinxClient::setArrayResult控制搜索结果集的返回格式

说明

public SphinxClient::setArrayResult ( bool $array_result = false ) : bool

控制搜索结果集的返回格式(匹配项按数组返回还是按hash返回).

参数

array_result

如果 array_result 设置为 FALSE, 匹配项以PHP hash格式返回,文档ID为键,其他信息(权重、属性)为值。如果 array_result 设置为 TRUE, 匹配项以普通数组返回,包括匹配项的全部信息(含文档ID).

返回值

总是返回 TRUE.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/sphinxclient.setarrayresult.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3