- Output for 7.1.25 - 7.1.28, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1 - 8.4.2
- Array ( [0] => Hello [1] => 123.02 [2] => ??? [3] => 4 )
<?php
$str = "Hello 123.02 ??? 04";
$result = sscanf($str, "%s %f %s %d");
print_r($result);