2 Test sscanf() function : error conditions
6 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
7 * Description: Parses input from a string according to a format
8 * Source code: ext/standard/string.c
10 echo "*** Testing sscanf() : error conditions ***\n";
15 echo "\n-- Testing sscanf() function with more than expected no. of arguments --\n";
18 sscanf($str, $format, $str1, $str2, $extra_str);
19 } catch (ValueError $exception) {
20 echo $exception->getMessage() . "\n";
24 *** Testing sscanf() : error conditions ***
26 -- Testing sscanf() function with more than expected no. of arguments --
27 Variable is not assigned by any conversion specifiers