Io ho questo problema... devo tagliare un testo in caso questo sia più lungo di un tot di parole
ad esempio uso questa funzione...
$myString = "This is a string or a news preview but I need only the beginning !";
echo strSelect( $myString, 30 )." ...";
Vorrei che venisse fuori la scritta "leggi tutto" solo se il testo originario è più lungo del numero di parole impostate
per confrontare 2 stringhe posso fare così?
If ($myString_old > $myString)
o devo usare un metodo per contare le lettere?