理解sscanf的作用

2.例子

$str = "age:30 weight:60kg";
sscanf($str,"age:%d weight:%dkg",$age,$weight);

//30,60
var_dump($age,$weight);

 

相关文章:

  • 2022-03-11
  • 2021-07-04
  • 2022-01-01
  • 2022-03-01
  • 2022-01-01
  • 2021-12-22
猜你喜欢
  • 2021-08-03
  • 2021-11-24
  • 2022-12-23
相关资源
相似解决方案