Function: sizeof version 72

Function:
Description: Alias of count()
Version:
Status: latest
Date: 2011-12-20 04:42
Summary: Import from phpjs.
Programmer: jj5
Code
1
2
3
4
5
6
7
8
9
10
function sizeof (mixed_var, mode) {
    // http://jsphp.co/jsphp/fn/view/sizeof
    // +   original by: Philip Peterson
    // -    depends on: count
    // *     example 1: sizeof([[0,0],[0,-4]], 'COUNT_RECURSIVE');
    // *     returns 1: 6
    // *     example 2: sizeof({'one' : [1,2,3,4,5]}, 'COUNT_RECURSIVE');
    // *     returns 2: 6
    return this.count(mixed_var, mode);
}
[top]

Comments

There are no comments yet, be the first!

Please Login or Register to post comments.