Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Collection
- {
- protected $items = [];
- public function __construct(array $items)
- {
- $this->items = $items;
- }
- }
- $collection = new Collection([1, 2, 41, 60]);
- echo count($collection);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement