<html>
<body>
$str = "If you divide 4 by 2 you'll get 2";
$format = sscanf($str,"%s %s %s %d %s %d %s %s %c");
print_r($format);
</body>
<!-- Mirrored from www.w3schools.com/php7/phptryit.asp?filename=tryphp_func_string_sscanf2 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:41:45 GMT -->
</html>