<!DOCTYPE html><html><body><?php$str = "age:30 weight:60kg";sscanf($str,"age:%d weight:%dkg",$age,$weight);// show types and valuesvar_dump($age,$weight);?></body></html>