PHP wordwrap无法处理<select>标记</select>

时间:2013-06-20 01:42:38

标签: php word-wrap

while ($desc = $db->fetch_assoc()):
   $str =  $desc['description'] . '<br>';
   $fstr =  wordwrap($str, 50, '<br>\n');

   $desc1 .= "<option>" . $fstr ." </option>";

endwhile;

<select id="classtype">
            <?php echo  $desc1; ?>
</select>

wordwrap不适用于<select>吗?

0 个答案:

没有答案