Strings
[ class tree: Strings ] [ index: Strings ] [ all elements ]

Class: STRpostcodes

Source Location: /STRpostcodes.php

Class Overview

Strings
   |
   --STRpostcodes

This class manages STRpostcodes objects. It is used to manipulate postcode strings.


Author(s):

Version:

  • 2.0

Methods


Inherited Variables

Inherited Methods

Class: Strings

Strings::__construct()
Construction function
Strings::console()
Console function
Strings::IsUTF8()
UTF8 detection function
Strings::QuoteStrip()
Quotes stripping function
Strings::RemoveAccent()
Accents removal function
Strings::RemoveSpaces()
Spaces removal function
Strings::stringHasNumbers()
Numbers detection function
Strings::ToUTF8()
UTF8 conversion function
Strings::ucwordsw()
Special uppercase function

Class Details

[line 34]
This class manages STRpostcodes objects. It is used to manipulate postcode strings.

Created on 13 aug 08

Changes: 1.0 -> 2.0: 29 jul 09 updated: file is PEAR compatible name of class has been changed from Postcodes to STRpostcodes




Tags:

author:  Pierre-Dominique Vienne <pvienne@me.com>
version:  2.0
license:  GNU Public License


[ Top ]


Class Methods


method ValidatePostcode [line 56]

bool ValidatePostcode( string $this->value)

Postcode validation function

This function is used to validate a postcode Result is returned

  1.  <?php
  2.  $oPostcode        new STRpostcodes();
  3.  $oPostcode->value "1008";
  4.  echo $oPostcode->ValidatePostcode();
  5.  // 1
  6.  ?>




Tags:

return:  true if postcode is valid
since:  version 1.0


Parameters:

string   $this->value   postcode string to be processed (required)

[ Top ]


Documentation generated on Wed, 26 Aug 2009 12:30:48 +0200 by phpDocumentor 1.4.1