Miglioria conteggio caratteri
This commit is contained in:
parent
8c20974e5b
commit
137a5e6ffe
|
@ -56,6 +56,10 @@ class Autofill
|
||||||
$count += substr_count($text, PHP_EOL);
|
$count += substr_count($text, PHP_EOL);
|
||||||
$count += substr_count($text, '<br>');
|
$count += substr_count($text, '<br>');
|
||||||
|
|
||||||
|
// Ricerca dei caratteri a capo
|
||||||
|
preg_match_all("/(\r\n|\r|\n)/", $text, $matches);
|
||||||
|
$count += count($matches[0]);
|
||||||
|
|
||||||
if ($small) {
|
if ($small) {
|
||||||
$count = $count / 3;
|
$count = $count / 3;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue