Well, your nasty parse error is because you have 2 opening ( and 3 closing
) on that line.

A quick way to get the very last element of a 2-d array is to use:

  echo end(end($idArray));


On Sat, 28 Sep 2002, Phil Powell wrote:

> 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

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to