I'm looking at
http://ca3.php.net/manual/en/function.count-chars.php
In particular, noting the mode for return values
0 - an array with the byte-value as key and the frequency of every byte as
value.
1 - same as 0 but only byte-values with a frequency greater than zero are
listed.
2 - same as 0 but only byte-values with a frequency equal to zero are
listed.
3 - a string containing all used byte-values is returned.
4 - a string containing all not used byte-values is returned.
If you call var_dump(count_chars("PHP", 3)); you get "HP", not "72,80" so it
seems as though for the
modes 3 and 4 it should be using some terminology other than byte values.
For modes 0-2 it does indeed
use the ASCII value, like
array(2) {
[72]=>
int(1)
[80]=>
int(2)
}
So it's only with modes 3 & 4 that I'm suggesting the change. Thoughts? Is
there better terminolgy than
characters? Not that this is going to be a funcaday later in the week or
anything :)
paul
p.s. like many I'm traveling extensively over the holidays, I'm about to
fall off the planet until mid-january,
if this discussion goes somewhere and someone want's to commit feel free, or
I'll come up with something
upon my return.
--
Paul Reinheimer
Zend Certified Engineer