Display the drop-down list

Test of bindec()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #1
$input = [
  
=> '110011',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'number' => 51,
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #2
$input = [
  
=> '000110011',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'number' => 51,
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #3
$input = [
  
=> '111',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'number' => 7,
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]