speedphp 常用标签 foreach if

<select name=”company_id” id=”” class=”form-select” >
<option value=””>请选择快递类型</option>
<{foreach item=item name=user from=$companylist}>
<option
<{if $item.company_id ==$courier.company_id}>
selected=”selected”
<{/if}>
value=”<{$item.company_id}>”>
<{$item.company_name}>
</option>
<{/foreach}>
</select>