On Wed, Nov 19, 2014 at 09:52:39PM +0100, Piotr Grzybowski wrote: > now I wonder, maybe this: > > $#a > > should return number of elements in array, if a is an array, and > strlen($a) for scalars?
That would break existing scripts. $#a already means "argc followed by the letter a". If you meant ${#a}, that would *still* break existing scripts, because ${#a} when a is an array currently means "the length of a[0]".