title: Divide long string into 5 container but don't break words
body: <p>I have a long text in php database and I want to divide it in 5 <code>&lt;div&gt;</code> without breaking sentences and words. If my long text dived in 4 <code>&lt;div&gt;</code> then remaining <code>&lt;div&gt;</code> not display. </p>
  
  <p>Here I attach sample to display long text in 2 <code>&lt;div&gt;</code>  </p>
  
  <p><a href="https://i.stack.imgur.com/FPvHf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FPvHf.png" alt="enter image description here"></a></p>
  
  <p>my fetching data coding sample</p>
  
  <pre><code>&lt;?php   
  $query = mysqli_query($conn, "SELECT * FROM bookrecord where status='a' ") or die("Could not retrieve image: " .mysqli_error($conn));
  
  if (mysqli_num_rows($query) &gt; 0) {
      while ($row = mysqli_fetch_assoc($query)) {
          extract($row);      
          ?&gt;
          &lt;div class="item"&gt;
              &lt;a href="#"&gt;
                  &lt;div class="projects-agile-grid-info"&gt;
                      &lt;div class="projects-grid-caption"&gt;                                     
                          &lt;p&gt;&lt;?php echo $row['book-description'];?&gt;&lt;/p&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/a&gt;
          &lt;/div&gt;
          &lt;?php
      }
  }
  ?&gt;
  </code></pre>