1--TEST-- 2Test sscanf() function : error conditions 3--FILE-- 4<?php 5 6echo "*** Testing sscanf() : error conditions ***\n"; 7 8$str = "Hello World"; 9$format = "%s %s"; 10 11echo "\n-- Testing sscanf() function with more than expected no. of arguments --\n"; 12 13try { 14 sscanf($str, $format, $str1, $str2, $extra_str); 15} catch (ValueError $exception) { 16 echo $exception->getMessage() . "\n"; 17} 18?> 19--EXPECT-- 20*** Testing sscanf() : error conditions *** 21 22-- Testing sscanf() function with more than expected no. of arguments -- 23Variable is not assigned by any conversion specifiers 24