title: PHP Variable with wordwrap
body: <p>I got an exercise from my University. We made a Website with PHP in Netbeans, with database and all that.</p>
  
  <p>Now I got a problem. I have to type in a name let's say "Germany", that will save that name in a variable $seminarbezeichnung. Now I have to show that in the website and it should split in "Ger" and after that a wordwrap "many"(just a simple example, we have to do something like after 15 characters, so it wont be too long).</p>
  
  <p>The thing now is, that I couldn't do it, because I am not that good in PHP :D</p>
  
  <p>I did something like this:</p>
  
  <pre><code>echo "&lt;tr&gt;&lt;td&gt;" . $neuertext = wordwrap($seminarbezeichnung, 20, "&lt;br /&gt;\n");
  
  
          echo $neuertext
  </code></pre>
  
  <p>Shouldn't that make a wordwrap after 20 characters?</p>
  
  <p>I Hope you can help me :)
  <a href="https://i.stack.imgur.com/u8Hox.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u8Hox.png" alt=""></a>
  You see that at the left side it won't do a wordwrap after 20 characters</p>
  
  <p>Thanks for helping and sorry for my english, not a native speaker</p>