Skip to content

Instantly share code, notes, and snippets.

@SumonMSelim
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SumonMSelim/98418564ed41f8c83616 to your computer and use it in GitHub Desktop.
Save SumonMSelim/98418564ed41f8c83616 to your computer and use it in GitHub Desktop.
Getting value from repeatable input block
<?php
$array = [];
foreach ($_POST['name'] as $key => $value) {
$array[$key]['name'] = $value;
$array[$key]['email'] = $_POST['email'][$key];
}
var_dump($array);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment