Possible Duplicate:
Able to see a variable in print_r()'s output, but not sure how to access it in code
The output of print_r($node)
is the following.
[field_pimage] => Array
(
[und] => Array
(
[0] => Array
(
[fid] => 4
[alt] =>
[title] =>
[width] => 1440
[height] => 900
[uid] => 1
[filename] => 200801232112524201.jpg
[uri] => public://200801232112524201.jpg
[filemime] => image/jpeg
[filesize] => 122349
[status] => 1
[timestamp] => 1351403970
I want to output the [uri]
's value, how should I do it?
$node->field_pimage->und->0->['uri']; //but it doesn't work?