echoing our parts of an Array?
Posted
by Wes
on Stack Overflow
See other posts from Stack Overflow
or by Wes
Published on 2010-03-08T22:05:47Z
Indexed on
2010/03/08
22:36 UTC
Read the original article
Hit count: 163
I have the following array that I get as an output from facebook:
http://www.paste.to/v/1jntlnml
With the following code:
$stream = $facebook->api_client->stream_get('',128342905144,'0','0',30,'','','','');
foreach($stream as $wallpost) {
echo '<pre>';
print_r($wallpost);
echo '</pre>';
}
So I get the data that I need, but I want to call the individual variables within this array. For example, echo out the [message] for each post.
Since it only loops once, I cant echo $wallpost['message'] or anything similar.
any idea?
© Stack Overflow or respective owner