Source Code:
(back to article)
<?php $example_array = new ArrayObject([1, 2, 3]); if ($example_array instanceof ArrayObject) { echo "example_array is an ArrayObject"; } else { echo "example_array is not an ArrayObject"; }
Result:
Report an issue