cvs: pear /Validate Validate.php

From: Date: Thu, 21 Nov 2002 13:22:31 +0000
Subject: cvs: pear /Validate Validate.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7508@lists.php.net to get a copy of this message
nepto Thu Nov 21 08:22:31 2002 EDT Modified files: /pear/Validate Validate.php Log: Added usage example into creditCard() help comment. Index: pear/Validate/Validate.php diff -u pear/Validate/Validate.php:1.22 pear/Validate/Validate.php:1.23 --- pear/Validate/Validate.php:1.22 Sun Aug 18 15:08:05 2002 +++ pear/Validate/Validate.php Thu Nov 21 08:22:31 2002 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Validate.php,v 1.22 2002/08/18 19:08:05 pajoye Exp $ +// $Id: Validate.php,v 1.23 2002/11/21 13:22:31 nepto Exp $ // // Methods for common data validations // @@ -139,7 +139,15 @@ * http://hysteria.sk/prielom/prielom-12.html#3 (Slovak language) * http://www.speech.cs.cmu.edu/~sburke/pub/luhn_lib.html (Perl lib) * - * @param string $number number + * Usage: + * <?php + * require_once 'Validate.php'; + * if (Validate::creditCard('credit_card_number')) { + * // Credit card number is OK + * } + * ?> + * + * @param string $number number (only numeric chars will be considered) * @return bool true if number is valid, otherwise false * @author Ondrej Jombik <nepto@pobox.sk> */ @@ -363,4 +371,4 @@ return $valid; } } -?> \ No newline at end of file +?>

« previous php.pear.cvs (#7508) next »