Re: How To Get Last Item Of An Array?
| From: | Leon Mergen | Date: | Wed, 25 Dec 2002 21:18:36 +0000 |
| Subject: | Re: How To Get Last Item Of An Array? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129330@lists.php.net to get a copy of this message | ||
"John W. Holmes" <holmes072000@charter.net> schreef in bericht
news:000401c2ac54$142032c0$7c02a8c0@coconut...
> Kind of begs the question of why can't you just select what you need
> with the proper query, instead of loading everything into an array...
Yeah, just add limit 0,1 desc to the query