PHP コード/index.php
<?php
var_dump($_POST);
?>
HTMLコード
<html>
<body>
<form action="index.php" method="post">
Name: <input type="text" name="fname" />
Age: <input type="text" name="age" />
Addess: <input type="text" name="ads" />
<input type="submit" /> </form>
</body>
</html>
出力
array(3) { ["fname"]=> string(5) "USER_INPUT_NAME" ["age"]=> string(6) "USER_INPUT_AGE" ["ads"]=> string(5) "USER_INPUT_ADDRESS" }
だから私がやりたいのは、 foreach を使用してその出力を通常の配列としてフォーマットする方法ですか?