Display the drop-down list

Test of unpack()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #1
$input = [
  
=> 'cchars/nint',
  
=> '_DOUBLE_QUOTES_\\x04\\x00\\xa0\\x00_DOUBLE_QUOTES_',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
'chars' => 4,
      
'int' => 160,
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #2
$input = [
  
=> 'c2chars/nint',
  
=> '_DOUBLE_QUOTES_\\x04\\x00\\xa0\\x00_DOUBLE_QUOTES_',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
'chars1' => 4,
      
'chars2' => 0,
      
'int' => 40960,
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #3
$input = [
  
=> 'c2/n',
  
=> '_DOUBLE_QUOTES_\\x32\\x42\\x00\\xa0_DOUBLE_QUOTES_',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
=> 160,
      
=> 66,
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]