Skip to content Skip to sidebar Skip to footer

How To Break Mysql Content(text+html Content) Into Columns?

As a first, I'd like to mention that I understand how everyone feels towards asking questions without providing at least some trial or errors, yet this is purely a need to know kno

Solution 1:

Use a dot before the equalssign after the first instantiation of the variable $string to add to it in your second example.

$separator = "<br/>";

$text = stripslashes($article_content); 
$first = ceil(strlen($text) / 3);

$string = substr($text, 0, $first);
$string .= $separator;
$string .= substr($text,$first,$first);
$string .= $separator;
$string .= substr($text,($first*2), $first);

echo $string;

Post a Comment for "How To Break Mysql Content(text+html Content) Into Columns?"