Skip to content

Instantly share code, notes, and snippets.

@amin007
Created September 1, 2015 11:49
Show Gist options
  • Save amin007/d330a27a2f1662859a32 to your computer and use it in GitHub Desktop.
Save amin007/d330a27a2f1662859a32 to your computer and use it in GitHub Desktop.
memahami tatasusunan dalam $_POST
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form method="POST">
<input name="form[subscribe][phone][1]" type="text">
<input name="form[subscribe][phone][0]" type="text">
<input value="lol" type="submit">
</form>
</body>
</html>
<?php
echo '<pre>'; print_r($_POST); echo '</pre>';
/* sepatutnya macam ini
Array
(
[form] => Array
(
[subscribe] => Array
(
[phone] => Array
(
[1] => a
[0] => q
)
)
)
)
*/
?>
@rozalman
Copy link

rozalman commented Sep 1, 2015

THank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment