I am getting this error
count(): Parameter must be an array or an object that implements Countable
CODE
if(count($settings['cols'])>0)
{
$settings_list[] = 'cols:[' . self::prepare_reports_settings_val($settings['cols']) . ']';
}
I am getting error in if(count($settings['cols'])>0)
. What should I write instead of count here?
UPDATE all of the three answer are correct . is_array() worked and if($settings['cols']) also worked . I can't mark right all three . So I am writing here . Thank you all :-)