Greg Beaver wrote:
> amen, this behavior makes no sense even though sizeof() is an alias to
> count().  sizeof('this') and sizeof('this long thing') are both 1, which
> makes no sense.  I would go so far as to say a E_NOTICE is more
> appropriate than E_STRICT - you should only be using count() for
> arrays/objects.

Actually this result makes perfect sense since type conversion changes
string into array('your string') and does a count of that, which is 1.

Ilia

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to