Page break with php-fckeditor

php code

<?php
if (stripos($row_latestnews[‘nws_text_gr’],”<div style=\”page-break-after: always;\”><span style=\”display: none;\”>&nbsp;</span></div>”)<1)
echo substr($row_latestnews[‘nws_text_gr’],0,180);
else
{
$str=split(“<div style=\”page-break-after: always;\”><span style=\”display: none;\”>&nbsp;</span></div>”,$row_latestnews[‘nws_text_gr’]);
echo $str[0];

}

?>

Leave a comment