php - Display data from multidimensional array -


this question has answer here:

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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -