Display the drop-down list

Test of floatval()

Example #1 : test success
Example #2 : test success
Example #1
$input = '122.34343The'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 122.34343,
  ],
  
'php_version' => '7.1.25 Linux x86_64',
]
Example #2
$input = 'The122.34343'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'float' => 0.0,
  ],
  
'php_version' => '7.1.25 Linux x86_64',
]