|
Posted by Pedro Graca on 02/04/06 03:17
Jim Carlock wrote:
> For arrays of arrays, how do I access the "ani/pic-1.gif" element?
>
> $aImages = array("custom_pools", array(array("ani/pic-1.gif",
> "Replica 1974 Gibson Les Paul Guitar", "pic-1.jpg",
> "description", "pagetitle", "metadescription", "metakeywords",
> "<h1>h1</h1>"),
>
> I tried $aImages[0][0] but that returns "c".
> I then tried $aImages[0][1], and that returns "u".
> I then tried $aImages[0][0][0] and that returns an empty string.
try
echo '<pre>'; print_r($aImages); echo '</pre>';
--
If you're posting through Google read <http://cfaj.freeshell.org/google>
[Back to original message]
|