method countProperties documentation in bbn\X
Counts the properties of an object.
Example
$obj = (object)[
'a' => 1,
'b' => false,
'c' => null
];
X::countProperties($obj);
// (int) 3
function(object $obj)
{
return \count(get_object_vars($obj));
}
Counts the properties of an object. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions