VOOZH about

URL: https://www.geeksforgeeks.org/php/php-arrayobject-count-function/

⇱ PHP | ArrayObject count() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PHP | ArrayObject count() Function

Last Updated : 27 Sep, 2019
The ArrayObject::count() function is an inbuilt function in PHP which is used to get the number of public properties in the ArrayObject. Syntax:
int ArrayObject::count( void )
Parameters: This function does not accept any parameters. Return Value: This function returns the number of public properties in the ArrayObject. Below programs illustrate the ArrayObject::count() function in PHP: Program 1:
Output:
3
Program 2:
Output:
3
Reference: https://www.php.net/manual/en/arrayobject.count.php
Comment