On Sun, 12 Jan 2003 [EMAIL PROTECTED] wrote: > I want to count characters without space "character". > $char="hello world" > so the result should be 10. > Can anybody help me?
$char="hello world";
$temp=str_replace(" ", "", $char);
echo strlen($temp);
should give you 10.
RDB
>
>
>
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

