1.需求
理解sscanf的作用
2.例子
$str = "age:30 weight:60kg";
sscanf($str,"age:%d weight:%dkg",$age,$weight); //30,60
var_dump($age,$weight);
2022-11-21 11:53:45
理解sscanf的作用
$str = "age:30 weight:60kg";
sscanf($str,"age:%d weight:%dkg",$age,$weight); //30,60
var_dump($age,$weight);