sscanf()¶
sscanf() is a built-in PHP function that parses input from a string according to a format string.
sscanf() is the opposite feature of printf(): the same format may be used to parse or printf data.
<?php
$date = January 01 2000;
list($month, $day, $year) = sscanf($date, %s %d %d);
print(%s %d %d, $month, $day, $year);
?>
See also PHP sscanf() Function.