wordwrap not working
<p>I'm trying to pull a string out of my mysql DB and use a working to add <code>&lt;br /&gt;</code> tags to it. But it's not working and I cant work out why </p>

<pre><code>if(mysql_num_rows($res)){
    echo '&lt;div id="contents"&gt;';
    while($row = mysql_fetch_array($res)){
    $UserName = $row['UserName'];
    $Message = $row['Message'];

    $MessageW = wordwrap($Message, 10, "&lt;br /&gt;\n");

      echo '&lt;div&gt;&lt;strong&gt;' .
            $UserName . ': &lt;/strong&gt;' .
            $MessageW . '&lt;/div&gt;';
    }
    echo '&lt;/div&gt;';
  }
</code></pre>

<p>Can anyone help me?</p>
