尝试访问laravel中int类型值的数组偏移量[已关闭]

oxf4rvwz  于 2023-04-07  发布在  其他
关注(0)|答案(1)|浏览(72)

**已关闭。**此问题需要debugging details。当前不接受答案。

编辑问题以包括desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将有助于其他人回答问题。
12小时前关闭。
Improve this question
@if(count($deliveryAddresses)〉0)

<h4 class="section-h4">Delivery Addresses</h4>

@foreach($deliveryAddresses as $key=> $address)

    <div class="control-group" style="float:left; margin-right: 5px;">

        <input type="radio" id="address{{ $address['id'] }}" name="address_id" value="{{ $address['id'] }}">

问题出现在最后一行。

drnojrws

drnojrws1#

试着喜欢这个
@foreach($deliveryAddresses as $key=〉$address)

{{ $address['id'] }}

联系我们
@endforeach

相关问题