Use array_filter
to filter the array:
function test($arr) {
return $arr["info_type_id"] == 4;
}
echo count(array_filter($yourArray, "test"));
More Related Contents:
- How to Get php variable to file? [closed]
- Incrementing and resetting a PHP session variable
- Seperating html form from php file
- How would I build this JSON using a PHP array
- Fatal error: Maximum execution time of 30 seconds exceeded
- How to use mysqli prepared statements?
- Send File Attachment from Form Using phpMailer and PHP
- PHP MySQL Google Chart JSON – Complete Example [closed]
- Run a PHP file in a cron job using CPanel
- The character encoding of the HTML document was not declared
- Async curl request in PHP
- pdo prepared statements with wildcards
- How to limit file upload type file size in PHP?
- How do I dynamically write a PHP object property name?
- How to call a php script/function on a html button click
- What’s the best practice to set html attribute via PHP?
- How can I read PNG Metadata from PHP?
- Why is Magento so slow? [closed]
- PHP: How To Disable Dangerous Functions
- Using the PHP HTTP_ACCEPT_LANGUAGE server variable
- How to prevent multiple logins in PHP website
- How to test if a user has SELECTED a file to upload?
- How to create a twig custom tag that executes a callback?
- Simple dynamic breadcrumb
- PHP: get number of decimal digits
- Simple way to read single record from MySQL
- Automatically refresh token using google drive api with php script
- Convert a big integer to a full string in PHP
- CURL import character encoding problem
- Compare two array and get all differences