How to Get the field value in the field collection?

670

$college = node_load(arg(1));

foreach ($college->field_college_video[LANGUAGE_NONE] as $college_video) {
$college_pic_results = field_collection_item_load($college_video);
p($college_pic_results);
}
}

OUTPUT:


[field_images] => Array
(
[und] => Array
(
[0] => Array
(
[fid] => 4506666
[uid] => 36
[filename] => login-form.png
[uri] => public://login-form.png
[filemime] => image/png
[filesize] => 11151
[status] => 1
[timestamp] => 1524148409
[origname] => login-form.png
[rdf_mapping] => Array
(
)

[alt] =>
[title] =>
[width] => 603
[height] => 384
)

)

)

LEAVE A REPLY

Please enter your comment!
Please enter your name here