php array display

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hello
Forum Newbie
Posts: 1
Joined: Tue Sep 21, 2010 5:45 am

php array display

Post by hello »

print_r displays this on my screen.
Array ( [0] => Array ( [0] => Array ( [message_hello] => sdsfsfsd ) ) )

Which code to write to access - sdsfsfsd ?
amargharat
Forum Commoner
Posts: 82
Joined: Wed Sep 16, 2009 2:43 am
Location: Mumbai, India
Contact:

Re: php array display

Post by amargharat »

it is as follows,

Code: Select all

echo $arr[0][0]["message_hello"];
Post Reply