显示下拉菜单

Test of shuffle() 本页面仅提供英文版本。

Example #1 : test not validated (platform dependant or random result etc.)
Example #1
$input = [
  
'__array' => [
    
=> 0,
    
=> 1,
    
=> 2,
    
=> 3,
    
=> 4,
    
=> 5,
    
=> 6,
    
=> 7,
    
=> 8,
    
=> 9,
    
10 => 10,
    
11 => 11,
    
12 => 12,
    
13 => 13,
    
14 => 14,
    
15 => 15,
    
16 => 16,
    
17 => 17,
    
18 => 18,
    
19 => 19,
    
20 => 20,
  ],
  
=> '$array',
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'array' => [
      
=> 13,
      
=> 3,
      
=> 1,
      
=> 5,
      
=> 8,
      
=> 20,
      
=> 11,
      
=> 4,
      
=> 7,
      
=> 16,
      
10 => 17,
      
11 => 6,
      
12 => 0,
      
13 => 19,
      
14 => 15,
      
15 => 10,
      
16 => 12,
      
17 => 2,
      
18 => 14,
      
19 => 9,
      
20 => 18,
    ],
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]