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

Class: STRphones

Source Location: /STRphones.php

Class Overview

Strings
   |
   --STRphones

This class manages STRphones objects.


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 33]
This class manages STRphones objects.

Created on 29 aug 06

Changes: 1.0 -> 2.0: 30 jul 09 updated: class has been renamed from Phones() to STRphones() file is PEAR compatible added: to package Strings




Tags:

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


[ Top ]


Class Methods


method ValidatePhone [line 63]

bool ValidatePhone( [bool $nullable = false], string $this->value)

Phone validation function

This function is used to validate phone numbers. Result is returned

  1.  <?php
  2.  $oPhone          new STRphones();
  3.  $oPhone->value   "+41794719688";
  4.  echo $oPhone->ValidatePhone();
  5.  // 1
  6.  ?>




Tags:

return:  flag defining if the entered value is phone
since:  version 1.0


Parameters:

string   $this->value   text to be processed
bool   $nullable   switch defining if the treated value could be null

[ Top ]


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