Page 1 of 1

php array display

Posted: Tue Sep 21, 2010 5:51 am
by hello
print_r displays this on my screen.
Array ( [0] => Array ( [0] => Array ( [message_hello] => sdsfsfsd ) ) )

Which code to write to access - sdsfsfsd ?

Re: php array display

Posted: Tue Sep 21, 2010 6:28 am
by amargharat
it is as follows,

Code: Select all

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