[nycphp-talk] highest key of an array
Anthony Papillion II
papillion at gmail.com
Mon Sep 19 17:37:11 EDT 2005
> If you're just adding to an array using the '$arr[]' construct, then
> PHP will increment the index for you. But, let's say you're getting
> information out of a database and each record is uniquely identified
> by an ID number in the database. If you use that ID number as the
> index when you store the record in the array, the order you store them
> may not be in ascending order according to that number.
Makes sense. I'd not considered that. Thanks!
Anthony
More information about the talk
mailing list