<?php
$arr=array(
0=>array(
1=>'鼠',
15=>'牛',
29=>'虎'
),
30=>array(
50=>'兔',
59=>'龙',
65=>'蛇'
);
?>
The code is as above, how to determine whether 50, 59, and 65 belong to the same key name and output the text under all 30 key names? Thank you in advance. I haven’t researched this issue for a day and I don’t know how to judge.
Output:
(Since the code uses
print_r
without adding line breaks, the content is all displayed on one line)