PHP Menghitung Jumlah Chars Tidak Terpisah
echo strlen(str_replace(array("\n", "\r\n", "\r"), '', $string));
Condemned Cassowary
echo strlen(str_replace(array("\n", "\r\n", "\r"), '', $string));