3.239.119.159 |    

Navigation

Google Advertisement

Diese Funktion prüft ob es sich um eine Deutsche Postleitzahl handelt. Handelt es sich um eine gültige PLZ wird TRUE (bzw. 1) andernfalls wird FALSE (bzw. 0) zurück gegeben.

check_plz
  1. sub check_plz {
  2.  
  3. $_[0] =~ s/\s+//g;
  4. if ($_[0] =~ m/^[0-9]+$/ && length($_[0]) == 5)
  5. 	{ return 1; } else { return 0; }
  6.  
  7. }
  8.  
Parsed in 0.002 seconds at 64.63 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 5 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)