PEAR_Validate::validVersion

PEAR_Validate::validVersion() – Determine whether a version is a properly formatted version number that can be used by version_compare()

Synopsis

require_once '/Validate.php';

bool PEAR_Validate::validVersion ( string $ver )

Description

Use this method to test the validity of a version number string. All versions must be testable with PHP's version_compare().

Parameter

string $ver

Version string

Throws

throws no exceptions thrown

Final

final - this method should not be overridden.

Note

This function should be called statically.

Determine whether $state represents a valid stability level (Previous) Override this method to handle validation of normal package names (Next)
Last updated: Thu, 31 Jul 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.