I have a laravel code that loop and this is the sample inputs
<input type="hidden" value="{{ $question['question'] }}" name="custom_form[question][{{ $question['name'] }}]" />
<input type="text" name="custom_form[answer][{{ $question['name'] }}]" />
and it result like this
any idea how to do like this result?
Array
(
(
[immigration_status] => Array
(
[question] => What is your current Immigration status?
[answer] => Naturalized Citizen
)
[green_card] => Array
(
[question] => Do you have a Green Card?
[answer] => Yes
)
....
)
)
if there is no like this on <input>, how to do this on foreach loop to result like this?
What is your current Immigration status? Naturalized Citizen
Do you have a Green Card? Yes
