【发布时间】:2014-04-13 11:15:22
【问题描述】:
PHP 代码:
print_r($InformationRetrieval['KeywordExtraction'][1]);
输出:
Array
(
[google] => 15
[search] => 18
[or] => 2
[web] => 4
[is] => 4
[a] => 5
[engine] => 2
}
但需要打印作为该数组索引的单词,例如:google、search 或 web 等。
它是怎么做的?
【问题讨论】:
-
您可以使用
array_keys查看我的答案和演示更多详细信息 -
你的标题提到了 JSON。你在找json_encode() 吗?
标签: php json database printing