IntlDateFormatter::parse()

string parse(string $value, int $position = null)

Parse string to a timestamp value.

Parameters

string $value String to convert to a time value
int $position Not supported. Position at which to start the parsing in $value (zero-based) If no error occurs before $value is consumed, $parsepos will contain -1 otherwise it will contain the position at which parsing ended. If $parsepos > strlen($value), the parse fails immediately.

Return Value

string Parsed value as a timestamp

Exceptions

MethodArgumentNotImplementedException When $position different than null, behavior not implemented

See also

http://www.php.net/manual/en/intldateformatter.parse.php
doc_Symfony
2016-10-28 06:21:38
Comments
Leave a Comment

Please login to continue.