Created
September 1, 2015 11:49
-
-
Save amin007/d330a27a2f1662859a32 to your computer and use it in GitHub Desktop.
memahami tatasusunan dalam $_POST
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 | |
) | |
) | |
) | |
) | |
*/ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
THank you