Display the drop-down list

Test of strspn()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = [
  
=> '42 is the answer to the 128th question.',
  
=> '1234567890',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 2,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> 'foo',
  
=> 'o',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 0,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> 'foo',
  
=> 'o',
  
=> 1,
  
=> 2,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 2,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> 'foo',
  
=> 'o',
  
=> 1,
  
=> 1,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'int' => 1,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]