Hey all, I have an array..inside an array - and i basically wish to print the value of the assigned array variable...
$db = array('connect' =>
array('host' => 'localhost',
'user' => 'mo0ness',
'pass' => 'my_pass',
'dbname' => 'fromesh')
);
I tried doing:
print "$db[connect]['host']";
But all I get is "Array['host']" etc. Can any1 help me here and possibly correct me? Or is there a better way of doing what I wish to do? This content is inside a connection function, that when called; checks for a database connection. Thanx alot for ya time and any help 🙂