Come posso verificare la lunghezza di una stringa in php
$stringa="Lorem Ipsum รจ un testo segnaposto";
if (strlen($stringa) <= 7) {
echo 'minore di 7';
} else {
echo 'maggiore di 7';
}
Stringa maggiore di 7
$stringa="Lorem Ipsum รจ un testo segnaposto";
if (strlen($stringa) <= 7) {
echo 'minore di 7';
} else {
echo 'maggiore di 7';
}