It should be noted that when using SolrObject::getPropertyNames(), the array keys have an invisible character that needs to be trim()'d to work correctly.
PHP - Manual: SolrObject::getPropertyNames
2024-12-21
(PECL solr >= 0.9.2)
SolrObject::getPropertyNames — Returns an array of all the names of the properties
Returns an array of all the names of the properties
此函数没有参数。
Returns an array.
It should be noted that when using SolrObject::getPropertyNames(), the array keys have an invisible character that needs to be trim()'d to work correctly.
官方地址:https://www.php.net/manual/en/solrobject.getpropertynames.php