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