PEAR_Validate::validState()
PEAR_Validate::validState()
-- Determine whether $state represents a valid stability level
概要
require_once '/Validate.php'; |
bool
PEAR_Validate::validState
(string
$state)
説明
This utility method can be used to determine whether a string is a valid state.
Currently, states must be one of snapshot, devel,
alpha, beta, and stable.
パラメータ
- string
$state
State string to validate.
例外・エラー
throws
no exceptions thrown
Final
final - this method should not be overridden.