On Aug 26, 2007, at 9:08 PM, Michael B Allen wrote:

On 8/26/07, Jon Baer <[EMAIL PROTECTED]> wrote:
Is it anything that $array[0] would not be able to get access to?

Nope. The 0 element is not necessarily first. Consider the following example:

$array = array();
$array['first'] = 'foo';
$array[] = 'bar';


How about this:

$values = array_values($array);
$first = $values[0];

-- Dell

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to