• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Removing spaces from Postal Codes

#2
[eluser]CroNiX[/eluser]
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


Messages In This Thread
Removing spaces from Postal Codes - by El Forum - 08-08-2012, 05:15 PM
Removing spaces from Postal Codes - by El Forum - 08-08-2012, 09:00 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.