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

Source for file city.php

Documentation is available at city.php

  1. <?php
  2. require_once 'Validate/IT.php';
  3.  
  4. if (Validate_IT::city('mi')) {
  5.     echo 'Valid city code.';
  6. else {
  7.     echo 'NOT valid city code.';
  8. }
  9.  
  10. if (Validate_IT::cityName('milano')) {
  11.     echo 'Valid city name.';
  12. else {
  13.     echo 'NOT valid city name.';
  14. }
  15. ?>

Documentation generated on Mon, 11 Mar 2019 15:16:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.