Character count

without spaces

function char_count($text) {
	foreach (explode(" ", $text) as $text) $out .= $text; return strlen($text);
}

Usage

string char_count -> int


Comments

Add your comment