PHP Counting Número de chars excluindo novas linhas
echo strlen(str_replace(array("\n", "\r\n", "\r"), '', $string));
Condemned Cassowary
echo strlen(str_replace(array("\n", "\r\n", "\r"), '', $string));