Display the drop-down list

Test of in_array()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #5 : test success
Example #6 : test success
Example #7 : test success
Example #1
$input = [
  
=> 'Irix',
  
=> [
    
=> 'Mac',
    
=> 'NT',
    
=> 'Irix',
    
=> 'Linux',
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> 'mac',
  
=> [
    
=> 'Mac',
    
=> 'NT',
    
=> 'Irix',
    
=> 'Linux',
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'bool' => false,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> '12.4',
  
=> [
    
=> '1.10',
    
=> 12.4,
    
=> 1.13,
  ],
  
=> true,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'bool' => false,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> 1.13,
  
=> [
    
=> '1.10',
    
=> 12.4,
    
=> 1.13,
  ],
  
=> true,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #5
$input = [
  
=> [
    
=> 'p',
    
=> 'h',
  ],
  
=> [
    
=> [
      
=> 'p',
      
=> 'h',
    ],
    
=> [
      
=> 'p',
      
=> 'r',
    ],
    
=> 'o',
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #6
$input = [
  
=> [
    
=> 'f',
    
=> 'i',
  ],
  
=> [
    
=> [
      
=> 'p',
      
=> 'h',
    ],
    
=> [
      
=> 'p',
      
=> 'r',
    ],
    
=> 'o',
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'bool' => false,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #7
$input = [
  
=> 'o',
  
=> [
    
=> [
      
=> 'p',
      
=> 'h',
    ],
    
=> [
      
=> 'p',
      
=> 'r',
    ],
    
=> 'o',
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]