Display the drop-down list

Test of strcspn()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = [
  
=> 'abcd',
  
=> 'apple',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> 'abcd',
  
=> 'banana',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> 'hello',
  
=> 'l',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 2,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> 'hello',
  
=> 'world',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 2,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]