PYTHON ArrayObject::count

is this article helpful?
|
Python replacement for PHP's ArrayObject::count [ edit | history ]
$mylist = array(1,2,3,4)
print(count($mylist));

result: 4


>>>mylist = [1,2,3,4]
>>>print(len(mylist))

result: 4

PHP ArrayObject::count

PHP original manual for ArrayObject::count [ show | php.net ]

ArrayObject::count

(PHP 5 >= 5.1.0)

ArrayObject::countGet the number of elements in the Iterator

Description

int ArrayObject::count ( void )
Warning

This function is currently not documented; only its argument list is available.

Parameters

This function has no parameters.

Return Values

The number of elements in the Iterator.