NYCPHP Meetup

NYPHP.org

Need to get last element of 2-dimensional array

Phil Powell soazine at erols.com
Sat Sep 28 20:31:19 EDT 2002


The following produced a rather nasty parse error:

echo ($idArray[0][sizeof($idArray[0])]));

I have a 2-dimensional array $idArray that I must obtain the LAST element of that 2-dimensional array.. how do I do it?

Thanx
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20020928/6d2f6d15/attachment.html>


More information about the talk mailing list