0
我有以下的代码从帖子内容中提取第一三十字回声出一个数组:你怎么一个在WordPress的
$extract = explode (' ', $post->post_content);
$first_thirty = array_slice($extract, 0, 30);
echo $first_thirty;
但当我echo $first_thirty;
它打印“阵列”,我怎么能得到它打印正确。
'的print_r($ first_thirty);''的var_dump($ first_thirty);' –