VOOZH about

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

⇱ PHP | ArrayObject getFlags() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

PHP | ArrayObject getFlags() Function

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