Iterating over a complex Associative Array in PHP

后端 未结 7 1917
广开言路
广开言路 2020-11-27 17:00

Is there an easy way to iterate over an associative array of this structure in PHP:

The array $searches has a numbered index, with between 4 and 5 assoc

7条回答
  •  旧巷少年郎
    2020-11-27 17:47

    Can you just loop over all of the "part[n]" items and use isset to see if they actually exist or not?

提交回复
热议问题