[PHP] count characters without space

2003-01-11 Thread harald.mohring
who knowes how to count the charcaters in a string without the space character? thanks harry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] count characters without space

2003-01-11 Thread Gerald Timothy Quimpo
On Saturday 11 January 2003 08:51 pm, [EMAIL PROTECTED] wrote: who knowes how to count the charcaters in a string without the space character? you need to be more clear. number of characters in the string except space? number of distinct characters in the string except space? include other

Re: [PHP] count characters without space

2003-01-11 Thread Jeffrey B. Ferland
who knowes how to count the charcaters in a string without the space character? Using a regular expression to strip out all the spaces before passing to the word counting function seems easiest. You'll be left to adapt it to PHP, but the regexp is: 's/ //g' That removes all spaces. If it gives