Re: How do I split an alphabetical list (array) into A-M and N-Z?

From: Date: Wed, 03 Jul 2002 12:50:10 +0000
Subject: Re: How do I split an alphabetical list (array) into A-M and N-Z?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-105156@lists.php.net to get a copy of this message
On Wednesday 03 July 2002 19:52, Daevid Vincent wrote: > Anyone have a function that will take an alphabetical list of names (in > an array already) and split it into two 'chunks' (arrays) A-M and N-Z? Psuedo-code: loop through array array_shift() if element is A-M add to the A-M array, else add to N-Z array -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I wish I was on a Cincinnati street corner holding a clean dog! */

« previous php.general (#105156) next »