<p class="sougouContent"> var_dump($str); <br> <br> // array(4) { ["race"]=> int(11) ["season"]=> int(4) ["motor"]=> int(1) ["street"]=> int(1) } <br> <br> 怎么foreach后获取 <br> <br> race <br> season <br> motor <br> street <br> </p> <br> <h2>回复讨论(解决方案)</h2> <p class="sougouAnswer"> foreach(array_keys($str) as $k) echo $k.'<br>'; </p>