Message-ID: <7ikh73p8vre66r j7tjhqkauovfku9 jct4j@4ax.comfr om comatose
contained the following:
>if I have an array of ten items how can I sort the first five items in
>the array without sorting the second five items?
Use a loop to copy first five to a temporary array, sort that array and
then replace into original using array_splice()
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
In our last episode, <7ikh73p8vre66r j7tjhqkauovfku9 jct4j@4ax.com>, the
lovely and talented comatose broadcast on comp.lang.php:
if I have an array of ten items how can I sort the first five items in
the array without sorting the second five items?
Try searching the function index of manual for 'array' --- I'm pretty sure
you will find some useful slices of information to splice into your
knowledge base.
--
Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner>
Countdown: 580 days to go.
Owing to googlegroups not screening users to eliminate spammers and other
USENET abusers, I do not see most posts from googlegroups.
Comment