How do I limit the amount of letters that will appear in <?= $v['titulo']?>
within <div class="col-md-4 panel">
I have tried several things, but it only makes mistakes.
<?php $result = selectAllAnuncios(1,18); foreach ($result as $k => $v):
$link = "anuncio,".$v['id'].",".str_replace(" ","-",$v['titulo'])."-".str_replace(" ","-",$v['ano']);
$image = (@is_file("img/anuncios/".$v["imgs"][0]["name"])) ? "img/anuncios/".$v["imgs"][0]["name"] : "img/no-img.jpg" ; ?>
<div class="col-md-4 panel ">
<a href="<?=$link?>"> <img src='<?=$image?>' width="200" height="100">
<div ><?=$v['titulo'] ?> </br> <?=$v['ano']?> - R$ <?=$v['preco']?>
</a>
</div>
</div>
<?php endforeach; ?>