I have an array $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 )
)
)
This is all in a function which only returns a content variable, it does not echo or print. Only the content variable is being appended and returned.
for($index=0; $index < count($sampleArray); $index++){
$content .= '<p>'.$sampleArray[0]["Number"].'</p>';
}
Returning this give me an error
Undefined index:Number