Hi there, first post here. Looking for a bit of help with array in an array:
[php]stdClass::__set_state(array( ‘nid’ => ‘1’, ‘node_title’ => ‘A4E Ltd’, ‘node_type’ => ‘guide_organisation’, ‘node_vid’ => ‘173’, ‘node_data_field_members_field_members_uid’ => array ( 0 => array ( ‘uid’ => NULL, ), ), )) [/php]
This is the array and I am performing a count on that array but my code seems to be counting Null as a value
here is my code:
[php]<?php
if (!is_null($data->node_data_field_members_field_members_uid))
print count($data->node_data_field_members_field_members_uid);
?>[/php]
Can anyone tell me where I’m going wrong?