Source Code:
(back to article)
<?php $input = 'John 25'; sscanf($input, '%s %d', $name, $age); echo $name . "\n"; // Output: John echo $age; // Output: 25 ?>
Result:
Report an issue