I know this is simple once you know it, but I\'m trying to figure out the syntax for getting data from a multidimensional array. The PHP docs show how to make one, but not how to get data out. Here\'s a snippet of what I\'m trying to do...
<?php
$adInfo = array (1 => array (\"path\"=>\"site1_120x90.gif\", \"link\"=>\"www.site1.com\"),
2 => array (\"path\"=>\"site2_120x90.gif\", \"url\"=>\"www.site2.com\")
);
$iRand = rand(1,2);
?>
<a href=\"http://<?=$adInfo[$iRand[\'url\']]?>\"><img src=\"images/<?=$adInfo[$iRand[\'path\']]?>\"></a>
That was just a shot in the dark, but it\'s not working. Can someone help? Thanks.
Jake