Having this array:
Array
(
[_block1] => Array
(
[list] => Array
(
[sub-list] => Array
(
)
)
[links] => Number
[total] => Number
...
)
[_block2] => Array
(
[@attributes] => Array
(
)
[title] => ...
[data] => Array ()
...
)
[_block3] => Array
(
..
)
)
These blocks contain data returned by the api. Knowing that each api returns data in a different way / structure, I need to measure / calculate the data / size inside each and one of them, and then do if data > Xor <do something.
Is it possible? I searched google, but I found count(), and that’s not what I need to do this job.
Edit:
Each of these blocks contains many other sub-blocks, and I thought about calculating the size of the data in bytes, because the counter does not do the work here.
source
share