Display the drop-down list

Test of sscanf()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #1
$input = [
  
=> 'SN/2350001',
  
=> 'SN/%d',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => [
      
=> 2350001,
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #2
$input = [
  
=> 'January 01 2000',
  
=> '%s %d %d',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => [
      
=> 'January',
      
=> 1,
      
=> 2000,
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #3
$input = [
  
=> '_DOUBLE_QUOTES_24\\tLewis Carroll_DOUBLE_QUOTES_',
  
=> '_DOUBLE_QUOTES_%d\\t%s %s_DOUBLE_QUOTES_',
  
=> '$id',
  
=> '$first',
  
=> '$last',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'id' => 24,
    
'first' => 'Lewis',
    
'last' => 'Carroll',
    
'mixed' => 3,
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]