如何单独回显这个数组的值?
Array ( [0] => 20120514 [1] => My Event 3 )
所以
echo $value[0]; etc
到目前为止我有这个:
foreach (json_decode($json_data_string, true) as $item) {
$eventDate = trim($item['date']);
// positive limit
$myarray = (explode(',', $eventDate, 2));
foreach ($myarray as $value) {
echo $value;
}
此回显将整个字符串 no 作为数组输出。如果我这样做?
echo $value[0};
然后我只得到它的2个字符??
print_r :
Array ( [0] => 20120430 [1] => My Event 1 )