douchuanchai2793 2015-08-14 10:03
浏览 242

将完整地址转换为分隔符,城市,地区,邮政编码等

I have been searched by the internet, however I didn't find a perfect solution, so I faith that someone already did something like this.

So my issue is, I'm using a webservice were you send the VAT number and if is valid you got the Company info. However the address received is the full address not divided by parts.

For example: Google Ireland VAT is IE6388047V

I got: Company Name: GOOGLE IRELAND LIMITED Address: 3RD FLOOR ,GORDON HOUSE ,BARROW STREET ,DUBLIN 4

So what I need is something like this: 3RD FLOOR ,GORDON HOUSE ,BARROW STREET ,DUBLIN 4 Converts this to:

Address: Ringsend Post Office, Gordon House, Barrow St

City: Dublin 4

Country: Ireland

Someone can help me and make the day? Thank you so much!

  • 写回答

2条回答 默认 最新

  • duanlei1957 2015-08-14 11:11
    关注

    You can separate your address with array using PHP function explode(",",$address). It will separate your address after ", " and store in array...

    评论

报告相同问题?

悬赏问题

  • ¥15 救!ENVI5.6深度学习初始化模型报错怎么办?
  • ¥30 eclipse开启服务后,网页无法打开
  • ¥30 雷达辐射源信号参考模型
  • ¥15 html+css+js如何实现这样子的效果?
  • ¥15 STM32单片机自主设计
  • ¥15 如何在node.js中或者java中给wav格式的音频编码成sil格式呢
  • ¥15 不小心不正规的开发公司导致不给我们y码,
  • ¥15 我的代码无法在vc++中运行呀,错误很多
  • ¥50 求一个win系统下运行的可自动抓取arm64架构deb安装包和其依赖包的软件。
  • ¥60 fail to initialize keyboard hotkeys through kernel.0000000000