Source Code:
(back to article)
<?php $array = [1, 2, 3]; $result = count($array) > 1 ? 'more than one element' : 'one element or less'; echo $result;
Result:
Report an issue