NYCPHP Meetup

NYPHP.org

[nycphp-talk] A Bit of Array Trouble

Joseph Crawford codebowl at gmail.com
Fri Feb 10 13:16:43 EST 2006


Hey Guys,

I would appreciate any help i can get with this problem.

Based on a customers zip code when they come to the site we generate a list
of vendors and vendor locations and they are loaded into an array like this

www,codebowl.com/array.txt

what i need to do is loop over the vendor locations and sort them based on
the distance.  Currently it looks sorted but that is only because 2 records
are showing.

so in this case it is correct.  the end goal is to get the 2 closest
locations then get the closest based on total street miles.

is there current code out there that could do this?

Thanks,
--
Joseph Crawford Jr.
Zend Certified Engineer
Codebowl Solutions, Inc.
1-802-671-2021
codebowl at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20060210/6e088bc1/attachment.html>


More information about the talk mailing list