articles as $article ):?>
image
' . date( "d/m/Y", strtotime( $article['date_add'] ) ) . '
'; ?>
100) { // truncate string $contentCut = substr($content, 0, 100); $endPoint = strrpos($content, ' '); //if the string doesn't contain any space then it will cut without word basis. $content = $endPoint? substr($contentCut, 0, $endPoint) : substr($contentCut, 0); $content .= '...'; } echo $content; ?>