PHP sscanf Function
What is sscanf Function?
In PHP, this function parses input from a string according to a format.
In the above syntax sscanf Function reads from the "string" and interprets it according to the specified "format" , which is described in the documentation for sprintf().) " %% ,%b , %c, %d, %e, %u, %f, %F, %o, %s, %x, %X ", "arg1" is the first variable to store data, "arg2" is the second variable to store data, "arg++" is the variable to store third, fourth variables.
$string = "age:50 weight:60kg";
// show types and values
In the above sscanf Function example the string is parsed according to the specified format "%d" which specifies the integer.