Daily PHP Coding Challenge

Sharpen your programming skills by solving a new PHP coding problem everyday!

Ends In: --:--:--
Solution Available In: --:--:--
Jul
24
2026
Easy 50 Points

PHP Count Array Elements

Given $items = ["Apple", "Banana", "Orange"]; write PHP code to print count of elements.

Input Format

No input.

Output Format

3

Constraints

Use count() function.

Examples

Example 1:
Output:
3
Explanation: 3 elements in array
PHP
Theme:
Console Output
Press 'Run Code' to execute your program against the sample test cases.
Enter Submission Details
Hints Available
  1. echo count($items);
Challenge Completed!
🎉
🚀
🔥
🌟
🎊
🏆
✨ Daily Coding Challenge ✨
🎉 SUCCESSFULLY SOLVED 🎉
User Name
from Location
PHP Count Array Elements
Success Card
Generating your shareable success card...
Official Solution
Go Back Top