<div id="lyrics"> <span id="line_31" class="line line-s">En medio de este tropico mortal</span <span id="line_32" class="line line-s">Roots and creation, come again!</span> <span id
我知道如何在单个数组>> How to get all keys from a array that start with a certain string?中获取以特定字符串开头的所有数组键 但是,多维数组的方法是什么呢?例如,如何在中查找以'foo-‘开头的所有键: $arr = array('first-key' => 'first value'. array('foo