I have a multidimensional array that I am attempting to get a value of a key, so my code starts like this:
$doc = $data->field_field;
$print_r($doc);
which prints out this:
Array
(
[0] => Array
(
[rendered] => Array
(
[#markup] => link1 //what I want to grab
[#access] => 1
)
[raw] => Array
(
[fid] => **
[uid] => **
[filename] => ****.docx
[uri] =>****.docx
[filemime] =>
[filesize] =>
[status] => 1
[timestamp] =>
[type] => default
[uuid] =>
[rdf_mapping] => Array
(
)
[display] => 1
[description] =>
)
)
)
I am trying to grab the value of [#markup] which is a link.