You are not logged in.
Login
or
Register
.
JsPHP: a JavaScript library providing the PHP API
Home
Register
Demo
Categories
Functions
Contributors
Download
Links
Comments
FAQ
Contact
View
Edit
Benchmark
Revisions
Developers
Dependencies
Talk
Links
sizeof:
Edit: sizeof
Function:
sizeof
View sizeof
Edit sizeof
Edit code
Edit tests
Edit benchmark
View latest code
Edit latest code
Benchmark sizeof
Comment on sizeof
Comment on the latest code
View revisions
View versions
View contributors
View dependencies
View comments
View links
Download production code
Download development code
View the PHP docs
View phpjs.org
View phpjs.org raw code
Description:
Alias of count()
Edit function
Code
:
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); }
You have to be logged in to edit functions.
[
top
]
Comments
There are no comments yet, be the first!
Please
Login
or
Register
to post comments.