Display the drop-down list

Test of stristr()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = [
  
=> 'USER@EXAMPLE.com',
  
=> 'e',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'ER@EXAMPLE.com',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> 'USER@EXAMPLE.com',
  
=> 'e',
  
=> true,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'US',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> 'Hello World!',
  
=> 'earth',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => false,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> 'APPLE',
  
=> 97,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'string' => 'APPLE',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]