My questions sound may different but I am really looking for solution.
I have a variable in PHP, let’s say $check, containing a string. It can be either an address or a postal code. Is there any rule we can apply here to check whether variable has postcode or address?
Edit: This website is for UK
Thanks
Quite detailed link: here
Use:
I have written a UK postcode validator based off this, so I know it works 🙂