This is what I have:
<?php
echo "<ul class='frony-feat-img'>";
while ($row = $readresult->fetch() ) { ?>
<?php
printf ('<li class="blog-post">
<h3><a href="/%1$s/%2$s">%3$s</a></h3>
<img src="/media/%5$s" width="" height="" alt="" />
%4$s
<a class="read-post" href="/%1$s/%2$s">Read More</a>
</li>',
$blog_url,
$row['identifier'],
$row['title'],
$row['short_content'],
$row['featured_image']
);
}
echo "</ul>";
?>
I want to trim the length of $row['short_content'] to a certain string length and add [...] at the end. How do I do that without taking the returned value out of the array?
Please let me know if my question makes any sense!? Thanks.