php - Display data from multidimensional array -
this question has answer here:
- how can access array/object? 4 answers
how display individual values array?
for instance: x = 8.6; y = 43; f = more stuff?
$mega['stuff'] = [ 8.6, 43, 'more stuff' ];
you make associative array key-value pair.
$mega['stuff'] = [ 'x' => 8.6, 'y' => 43, 'f' => 'more stuff' ]; foreach ($mega['stuff'] $k => $v) { echo $k . ' : '. $v; echo '<br/>'; }
Comments
Post a Comment