Subdomain Posts
PHP | 1 day ago
None | 1 day ago
None | 1 day ago
None | 1 day ago
None | 3 days ago
PHP | 3 days ago
PHP | 4 days ago
Objective C | 4 days ago
None | 4 days ago
None | 4 days ago
Recent Posts
C | 1 min ago
None | 1 min ago
None | 2 min ago
PHP | 4 min ago
None | 5 min ago
PHP | 6 min ago
None | 6 min ago
None | 7 min ago
XML | 7 min ago
None | 8 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By Palocz Pal on the 7th of Feb 2010 12:04:11 PM
Download |
Raw |
Embed |
Report
<?php
// $Id: zipcode.hu.inc,v 1.9 2009/08/26 16:32:02 thierrygd Exp $
// Copyright 2008 Thierry GUEGAN http://www.arvoriad.com
/**
* @file
* CCK Field for Hungarian zipcodes.
*/
/**
* Verification for Hungarian zipcodes.
*
* @param string $text
* @return boolean Returns boolean FALSE if the zipcode is not valid.
* On success, returns a string containting the zipcode with some formatting.
*/
function valid_hu_zipcode($zipcodestring) {
$zipcodestring = trim($zipcodestring);
return FALSE;
}
//right now just do a quick check ==> has to be improved
//need to check more precisely by doing a query on a zipcode table, ...
else
{
return TRUE;
}
}
/**
* Formatting for zipcode.
*
* @param string $zipcodestring
* @return string Returns a string containting the zipcode with some formatting.
*/
function format_hu_zipcode($zipcodestring) {
$zipcodestring = trim($zipcodestring);
//do some formatting
return $zipcodestring;
}
Submit a correction or amendment below.
Make A New Post