I have a form with inputs that can be duplicated with jQuery. The inputs are like this
<select name='user_id[]'>
<option value=''>Select a user</option>
<option value='1'>Alice</option>
<option value='2'>Bob</option>
</select>
<input type="text" id="drinks1" name="drinks[]" />
<input type="text" id="drinks2" name="drinks[]" />
<input type="text" id="food1" name="food[]" />
<input type="text" id="food2" name="food[]" />
So in my processing script I have the arrays $_POST['userid'], $_POST['drinks'] and $_POST['food']
How can I check if these are empty? The empty() function doesnt work because they look like this when I print them Array ( [0] => ) which appears to be non-empty.