Title: count on non-array
Last modified: February 11, 2021

---

# count on non-array

 *  [Pratham](https://wordpress.org/support/users/pratham2003/)
 * (@pratham2003)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/count-on-non-array/)
 * The line like the following is leading to warnings. Please check if $delete_rows
   is an array before counting it.
 * `if(count($delete_rows > 0)) {`
 * count(): Parameter must be an array or an object that implements Countable

The topic ‘count on non-array’ is closed to new replies.

 * ![](https://ps.w.org/search-filter/assets/icon-256x256.png?rev=3096093)
 * [Search & Filter](https://wordpress.org/plugins/search-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/search-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-filter/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Pratham](https://wordpress.org/support/users/pratham2003/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/count-on-non-array/)
 * Status: not resolved