Re: I should know this by now (?)

[email protected]
Newsgroups php.general
Message-ID <[email protected]>
On Fri, 24 Jun 2022 17:20:42 -0700
JEFFRY KILLEN <[email protected]> wrote:

> Hello:
> 
> Are associative arrays countable?
> 
> I am trying to process the  number of indexes in
> an associative array and am having a real struggle
> getting a proper comparison to an incremented numerical
> variable.
> 
> I have looked at the manual entry for count() and that is
> what is sparking the question because I do not see that
> associative arrays are explicitly countable.
> 
> Thank you for time and attention
> JK

I don't recall ever having a problem using count() against associative
arrays. Try it.

Paul

-- 
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.