Php 如何检索序列化数组中的所有值

Php 如何检索序列化数组中的所有值,php,arrays,wordpress,Php,Arrays,Wordpress,我试图获取存储在wp_选项表中的该数组中的所有值。 阵列是: a:3:{i:0;s:11:"development";i:1;s:4:"apps";i:2;s:10:"creativity";} 我需要的只是获得价值:开发,应用,创造力 我试着: $myOptions = get_option('hashtag'); foreach($myOptions as $option) { echo $option; } 但结果是: developmentappscreativitydevelopm

我试图获取存储在wp_选项表中的该数组中的所有值。 阵列是:

a:3:{i:0;s:11:"development";i:1;s:4:"apps";i:2;s:10:"creativity";}
我需要的只是获得价值:开发应用创造力

我试着:

$myOptions = get_option('hashtag');
foreach($myOptions as $option) {
echo $option;
}
但结果是:

developmentappscreativitydevelopmentappscreativitydevelopmentappscreativity
string(11) "development" string(4) "apps" string(10) "creativity" string(11) "development" string(4) "apps" string(10) "creativity" string(11) "development" string(4) "apps" string(10) "creativity" 
如果我写:

var_dump ($option);
输出为:

developmentappscreativitydevelopmentappscreativitydevelopmentappscreativity
string(11) "development" string(4) "apps" string(10) "creativity" string(11) "development" string(4) "apps" string(10) "creativity" string(11) "development" string(4) "apps" string(10) "creativity" 
提前感谢。

$myOptions=get_选项(“标签”)


echo$myOptions[0]

var_dump($myOptions)
数组(3){[0]=>string(11)“开发”[1]=>string(4)“应用”[2]=>string(4)“开发”[1]=>string(4)“应用”[2]=>string(10)“创意”}数组(3){[0]=>string(11)“开发”[1]=>string(4)“应用”[2]=>string(10)“创造力”}那么您显然要运行代码三次。请再次检查。代码只运行一次。但是您得到了三次输出。这意味着您的代码使用相同的数据运行三次,或者您的数据有九个值。这是什么?现在的输出是:
0开发1应用程序2创造性0开发1应用程序2创造性0开发1应用程序2创造性
看起来该选项只是一个关联数组。您应该能够通过引用键、开发应用程序等来检索值。等等,别担心。我看错了。开发是值,还是开发应该是值的引用?开发是值吗