Ga naar inhoud

Tekst afkappen in PHP

Vraag:

Tekst afkappen in PHP

Code:

<?php
$text_short = get_sub_field(’tekst’);
echo mb_strimwidth($text_short, 0, 10, “…”);
?>