Display the drop-down list

Test of gettype()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = 1
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'integer',
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #2
$input = 1.1
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'double',
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #3
$input = NULL
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'NULL',
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #4
$input = 'foo'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'string',
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]