08-08-2012, 09:00 PM
[eluser]CroNiX[/eluser]
probably the easiest is to just use str_replace() and remove any spaces from the 2 zipcode vars
probably the easiest is to just use str_replace() and remove any spaces from the 2 zipcode vars
Code:
function get_distance($z1, $z2) {
$z1 = str_replace(' ', '', $z1);
$z2 = str_replace(' ', '', $z2);
//...rest the same