So I've been playing around with the Services module, it looks like there is a lot of fun to be had with this. Anyways, I was using the in-browser calls that the module provides to view the outputs of the functions and I've come to a field that I have no idea what it is, or what type it is and I'm hoping someone can help me out.

When I call node.get using a nid that corresponds to a CCK content type I get back what seem to be fairly standard returns - language, type, uid, title, etc... However towards the bottom of the output, there is a field labeled data with an odd looking value. The output reads:

[data] => a:0:{}

What exactly does this mean? The brackets ( {} ) made me think its some sort of array declaration, but if it is, I can't say I'm familiar with it. Any light that could be shed on this would be extremely appreciated.

Comments

nevets’s picture

Its a serialized array, the 'a' tells us it is an array, the 0 that it has zero elements and the '{}' is the empty list of elements.

dwatty1’s picture

Ahh, well I guess I was kind of on the right track. But thanks a ton - that was one of those issues that just kept bugging me, so I'm glad to have learned what it was about.