Display the drop-down list

Test of settype()

Example #1 : test success
Example #2 : test success
Example #1
$input = [
  
'__var' => '5bar',
  
=> '$var',
  
=> 'integer',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'var' => 5,
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
'__var' => true,
  
=> '$var',
  
=> 'string',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'var' => '1',
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]