<form action="hoge.php" method="post"> <h3>1人目の予約</h3> お名前: <input name="person[0][name]" type="text" /> 年齢: <input name="person[0][age]" type="text" /> <h3>2人目の予約</h3> お名前: <input name="person[1][name]" type="text" /> 年齢: <input name="person[1][age]" type="text" /> <input type="submit" value="送信" /> </form> <?php var_dump($_POST); ?> これに値を入れて表示してやると、 array(1) { ["person"]=> array(2) { [0]=> array
![PHPのフォームで多次元配列を使う | Cities:Skylines Japan 管理人ブログ](https://cdn-ak-scissors.b.st-hatena.com/image/square/ee1e76846e9b14e84fd73890d13ec5c6d3119eb7/height=288;version=1;width=512/https%3A%2F%2Fblog.kaminogi.jp%2Fwp-content%2Fuploads%2F2016%2F04%2F346297187f62aa8524f5a12aae58b93e.png)