Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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