我如何让 PHP 检查我的选择选项是否在 JSON 文件中,如果是,它应该回显。下面是我的 items.txt
<select id="name">
<option value="9171">Blackout</option>
<option value="5063">Blue Electric Guitar</option>
<option value="6167">Blue Skater Shoes</option>
<option value="5208">Boom Mic</option>
<option value="4917">Brady’s Beach Outfit</option>
<option value="4938">Brady’s Biker Outfit</option>
<option value="6193">Brady’s Shoes</option>
<option value="6192">Brady’s Sneakers</option>
<option value="5342">Brady’s Surfboard</option>
<option value="6157">Break a Leg Cast</option>
<option value="5228">Brown Leather Watch</option>
<option value="2126">Bubble Gum</option>
<option value="1668">Butchy’s Bike Helmet</option>
<option value="6186">Butchy’s Boots</option>
<option value="5343">Butchy’s Gloves</option>
<option value="4915">Butchy’s Outfit</option>
<option value="9217">Cadence’s Aug 2013 Giveaway</option>
<option value="7160">Calculator Pin</option>
<option value="9025">Castle Hallway Background</option>
<option value="9066">Cave Entrance Background</option>
<option value="9092">Cave Gate</option>
<option value="9063">A Day At The Beach Background</option>
</select>
有没有办法通过“media1.clubpenguin.com/play/en/web_service/game_configs/paper_items.json”进行搜索,然后通过PHP回显上面按ID排列的选项?