Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8468065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:49:40+00:00 2026-06-10T15:49:40+00:00

I am trying to validate post/zip codes for a very international site using the

  • 0

I am trying to validate post/zip codes for a very international site using the locale settings in Linux using PHP. If it works it would save me tons of time. I’ve checked the LC_ADDRESS settings in the installed locales and see that the pattern for validation is there for each language/market.

locale -c LC_ADDRESS

How do I access this information using PHP? localeconv() does not include any information about local address validation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:49:42+00:00Added an answer on June 10, 2026 at 3:49 pm

    Seems like noone actually have done this. I am guessing it would take improvements to the PHP localeconv() function to actually read the entire thing, and that would be a feature request to them.

    In the meantime I got the advice to fetch the data from http://i18napis.appspot.com/address
    and that actually contains the same information as the locale LC_ADDRESS and LC_PHONE does, so I am all good even though it means making an extra outgoing HTTP call.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to validate a comment form using AJAX/PHP, very nearly done now except
At the moment I am trying to validate a form using PHP. The problem
I'm trying to validate joinUs form <form id=frmReg method=post onsubmit=return valRegs() action=memb_area/register.php> //js: function
When trying to validate my site, I get the following error: Line 188, column
I'm trying to validate a simple XML file against an XML schema using the
I am trying to validate an e-mail address using javascript. The problem is the
i am trying to validate someone else's code here and they are using the
Trying to get this form to validate email using the function the professor said
I'm trying to validate a form and it works well, the right messages appear...
I have a problem trying to validate a user value using the jQuery Validation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.