psCount() Counts elements in arrary
Description:
This is a safe version of count() where null and string are ok, returns 0
Usage:
Example:
Code:
function psCount($ary) { $res = 0; if (is_array($ary) == true) { $res = count($ary); } return $res; }
Changlelog:
|
|