1 2 3 4 5 6 7 8 9
<?php $gift = array("TV","car","aeroplane", "iPad", "iPhone", "PS4"); $gift_count = count($gift); echo "I have $gift_count gifts."; ?>
1
I have 6 gifts.