Source Code:
(back to article)
<?php $array = [1, 2, 3]; $arrayObject = new ArrayObject($array); if ($arrayObject->count() > 1) { echo "The array has more than one element."; }
Result:
Report an issue