NAME sscanf - Parse a string with a given format SYNOPSIS int sscanf(string str, string fmt, mixed var1, mixed var2 ...) DESCRIPTION Parse string `str' with the format `fmt' and return matched pieces in the given variables. %s and %d in the format string refers to a string and a number respectively. The variables must be defined earlier as `strings' for those connected to a %s and `int' for those connected to a %d. EXAMPLE sscanf("good morning", "%s %s", var1, var2) == 2 var1 is set to "good" and var2 to "morning" sscanf("10 hi", "%d ", var) == 1 var is set to 10 sscanf("from bag", "%s %d", var1, var) == 1 var1 is set to from and var is unchanged