Wed, April 14, 2021
 
https://devcodepro.comdevcodepro
Home · Latest · Trends  /  PHP
1

count(): Argument #1 ($var) must be of type Countable fix

<?php

if (is_iterable($children)) {
 foreach ($children as $child) {
 }
}

//if ((count($children)) > 0) {
 //foreach ($children as $child) {
 //}
//}

?>
rated 1 times (1) (0)
comments: 0 / hits: 86  / 2 months ago, tue, feb 23, 21, 01:51:57
More From » PHP
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Posted
Jake
Member since Jan 6, 2021
Total Code Snippets: 4
Total Comments: 0
Location: Hartford, CT
Jake snippets
4 months ago, wed, jan 6, 21, 2:42:50
comments: 1 / hits: 216
SQL
3 months ago, sun, jan 24, 21, 5:39:27
comments: 0 / hits: 74
CSS
3 months ago, mon, jan 25, 21, 10:13:23
comments: 0 / hits: 76
PHP