App下载

demo_func_string_sscanf 在线工具

demo_func_string_sscanf 在线工具

<?php
$str = "age:30 weight:60kg";
sscanf($str,"age:%d weight:%dkg",$age,$weight);
// show types and values
var_dump($age,$weight);
?>
运行结果