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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -