How can I truncate the multiline text from the database? (html/css/php)

  css, html, javascript, php, sql

How can I truncate the data, wich I fetch from my MySQL database?

My html code:

<div class="content">
          <h3 class="title"><?php echo $title; ?></h3>
          <p class="main" id="main"><?php echo $content; ?></p>
          <a href="#"><i class="fa fa-arrow-right"></i> Artikel lesen</a>
        </div>

Source: Ask PHP

LEAVE A COMMENT