Heim > Artikel > Backend-Entwicklung > strpos函数,该怎么处理
strpos函数
<input id="flagc" type ="checkbox" value="c" name="flags[]"<?php if(strpos($row['flag'],'c')=='tuue') echo "checked='checked'" ?>/>推荐[c]<br /> <input id="flaga" type ="checkbox" value="a" name="flags[]"<?php if(strpos($row['flag'],'a')=='true') echo "checked='checked'" ?>/>特荐[a]<br /> <input id="flagh" type ="checkbox" value="h" name="flags[]"<?php if(strpos($row['flag'],'h')=='true') echo "checked='checked'" ?>/>头条[h]<br /> <input id="flago" type ="checkbox" value="o" name="flags[]"<?php if(strpos($row['flag'],'o')=='true') echo "checked='checked'" ?>/>特荐[o]<br /> <input id="flagn" type ="checkbox" value="n" name="flags[]"<?php if(strpos($row['flag'],'n')=='true') echo "checked='checked'" ?>/>特荐[n]