我有一个数组$SampleArray
:
Array (
[0] => Array (
[0] => Array (
[ID] => 322
[Number] => 1
[Date] => 3117-01-41
[example] => Hello )
[1] => Array (
[ID] => 123
[Number] => 49
[Date] => 1717-05-21
[example] => Hi )
[2] => Array (
[ID] => 007A
[Number] => 42
[Date] => 2005-11-24
[example] => Some Text )
)
)
这是一个只返回内容变量的函数,它不会回显或打印。仅附加并返回内容变量。
for($index=0; $index < count($sampleArray); $index++){
$content .= '<p>'.$sampleArray[0]["Number"].'</p>';
}
返回这个给我一个错误
Undefined index:Number