PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Validate » Validate » Bug #5577

Allow date input as an array

Details

Request #5577Allow date input as an array
Submitted2005-10-01 11:33 UTC
Fromchris dot yates1 at btconnect dot com
Assignedpajoye
StatusWont fix
PackageValidate
PHP VersionIrrelevant
OSN/A
Roadmaps(Not assigned)

Comments

[2005-10-01 11:33 UTC] chris dot yates1 at btconnect dot com

Description:
------------
Allow date validation input to be an array. This allows validation directly from a HTML_QuickForm_date form element.

Test script:
---------------
Put this at the start of the date function

// Handle date as array
if (is_array($date)) {
$date = implode('-', $date);
}