我有一个循环中的这个刀片片段,我想做一些描述。如何回显$ i + 1的值?
Delivery to the following recipient failed permanently:
test@XX.XXXXX.com
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain XXXX.XXXX.com by feedback-smtp.us-west-2.amazonses.com. [54.240.249.182].
The error that the other server returned was:
550 Mailbox does not exist!
答案 0 :(得分:2)
您可以这样做:
<?php $i = 0; ?>
@for ($i = 0; $i < 10; $i++)
{{ Form::text('description['.$i.']', null, array('class' => 'form-control', 'placeholder' => 'Description')) }}
<?php $i++; ?>
@endfor