hello,
I need help on a read more code, what I want is the $text to read a file ex: cp2/data/1.html and display a limit of words:rolleyes:😕😕😕😕
<?PHP
$text = " ";
if (strlen($text) > 40) {
$shortText = substr($text, 0, 40);
$shortText .= '... (<a href="cp2/data/1.html">Read More</a>)';
}else {
$shortText = $text;
}
echo $shortText;
?>