title: Split Strings in Half (Word-Aware) with PHP
body: <p>I'm trying to split strings in half, and it should not split in the middle of a word.</p>
  
  <p>So far I came up with the following which is 99% working :</p>
  
  <pre><code>$text = "The Quick : Brown Fox Jumped Over The Lazy / Dog";
  $half = (int)ceil(count($words = str_word_count($text, 1)) / 2); 
  $string1 = implode(' ', array_slice($words, 0, $half));
  $string2 = implode(' ', array_slice($words, $half));
  </code></pre>
  
  <p>This does work, correctly splitting any string in half according to the number of words in the string. However, it is removing any symbols in the string, for example for the above example it would output :</p>
  
  <pre><code>The Quick Brown Fox Jumped
  Over The Lazy Dog
  </code></pre>
  
  <p>I need to keep all the symbols like : and / in the string after being split. I don't understand why the current code is removing the symbols... If you can provide an alternative method or fix this method to not remove symbols, it would be greatly appreciated :)</p>