I want to return the ‘message->text’ part of this array. Can you help me? I am having some difficulty with this.
Array (
[name] => new exp
[created] => Array (
[date] => 20110304
[time] => 11:09:27
[version] => 2.02.6
)
[message] => Array (
[0] => Array (
[@attributes] => Array (
[id] => 0 [mbox] => recipe
)
[received] => Array (
[date] => 20090304
[time] => 13:16:48
)
[from] => Array (
[name] => Andrew Welch
[email] => <email address removed>
)
[to] => Array (
[name] => <email address removed>
[email] => <email address removed>
)
[messageid] => <email address removed>
[subject] => aloo paranthas
[text] => you take potatoes ... to cook.
[attachment] => Array (
[name] => part-003.html
[dir] => page0001/000000
[bytes] => 864
[size] => 864.00 B
[type] => text/html
)
[mboxname] => recipe
)
[1] => Array (
...
The array structure is like so:
So
$data['message']is itself an array:I suggest to read about arrays in PHP.