Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $array = ['red', 'green', 'blue'];
- $quantity = count($array);
- // if ($quantity == 5)
- //if ($quantity = 5)
- if (5 == $quantity)
- {
- echo "There are five items";
- } else {
- echo "There are NOT five items";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement