PHP Classes
PHP Classes
elePHPant
Icontem

Notable PHP package: PHP Count Array by Value Type

Recommend this page to a friend!
  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Posted on:

Categories: Notable Packages

Array entries can have values of many types. PHP can return the count of entries in an array but if you just want to get the count of elements of a given type, PHP does not provide a direct means to achieve that.

This class not only can count the elements of a given type, but it also can handle nested arrays.

Read this article to learn more details about how this notable PHP package works.




The package PHP Count Array by Value Type is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Get the number of values in array of a given type

Here follows in more detail what it does:

This class can get the number of values in array of a given type.

It can traverse a given array and count the number of values like the array_count_values function but it returns only those that have a given type.

The class can also count values of a type in variables objects of classes that act like arrays and implement the Traversable interface.

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.



You need to be a registered user or login to post a comment

1,512,488 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.



  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)