Validates if a string is a valid timecode.
isTimeCode(mixed $time, array &$matches): bool
time (mixed) : The timecode to validate.
matches (array) : If matches is populated, then it returns an array that is filled with the results of the match. ^(optional)^
(bool) : Returns true on success and false on failure.
true
false
If $matches is provided then an array is returned with the following:
$matches
0
1
$fx->isTimeCode('00:00:00') = true $fx->isTimeCode(123) = false
timecode | timecodeConvert
Home | CoreyFX | Validation
There was an error while loading. Please reload this page.