I have an input which is array
<input type="text" name="review_rate[]" value="{{$rinfo->review_rate}}" class="form-control text-center pay_review_scale_{{$cnts}}">
Now this input is not mandatory so when user doesnt add any value in first row and adds value in second row then it shows only 1 value in controller array
$review_rate= $request->review_rate;
echo "<pre>";
print_r($review_rate);exit; // this shows only second row value when first row value is blank
It shows values like this
Array
(
[0] => etgddddg
)
I want to show blank value also like below
Array
(
[0] => null
[1] => etgddddg
)
Any Suggestions?