显示下拉菜单

Test of gmp_setbit() 本页面仅提供英文版本。

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #1
$input = [
  
'number' => '2',
  
=> '$a',
  
=> 0,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '11',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
'number' => '0xfd',
  
=> '$a',
  
=> 1,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '11111111',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
'number' => '0xff',
  
=> '$a',
  
=> 0,
  
=> false,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => '11111110',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]