Home > Article > Backend Development > 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]