Display the drop-down list

Test of substr_replace()

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 #8 : test success
Example #9 : test success
Example #1
$input = [
  
=> 'ABCDEFGH:/MNRPQR/',
  
=> 'bob',
  
=> 0,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 'bob',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
=> 'ABCDEFGH:/MNRPQR/',
  
=> 'bob',
  
=> 0,
  
=> 17,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 'bob',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
=> 'ABCDEFGH:/MNRPQR/',
  
=> 'bob',
  
=> 0,
  
=> 0,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 'bobABCDEFGH:/MNRPQR/',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #4
$input = [
  
=> 'ABCDEFGH:/MNRPQR/',
  
=> 'bob',
  
=> 10,
  
=> -1,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 'ABCDEFGH:/bob/',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #5
$input = [
  
=> 'ABCDEFGH:/MNRPQR/',
  
=> 'bob',
  
=> -7,
  
=> -1,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 'ABCDEFGH:/bob/',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #6
$input = [
  
=> 'ABCDEFGH:/MNRPQR/',
  
=> '',
  
=> 10,
  
=> -1,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => 'ABCDEFGH://',
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #7
$input = [
  
=> [
    
=> 'A: XXX',
    
=> 'B: XXX',
    
=> 'C: XXX',
  ],
  
=> 'YYY',
  
=> 3,
  
=> 3,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => [
      
=> 'A: YYY',
      
=> 'B: YYY',
      
=> 'C: YYY',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #8
$input = [
  
=> [
    
=> 'A: XXX',
    
=> 'B: XXX',
    
=> 'C: XXX',
  ],
  
=> [
    
=> 'AAA',
    
=> 'BBB',
    
=> 'CCC',
  ],
  
=> 3,
  
=> 3,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => [
      
=> 'A: AAA',
      
=> 'B: BBB',
      
=> 'C: CCC',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #9
$input = [
  
=> [
    
=> 'A: XXX',
    
=> 'B: XXX',
    
=> 'C: XXX',
  ],
  
=> [
    
=> 'AAA',
    
=> 'BBB',
    
=> 'CCC',
  ],
  
=> 3,
  
=> [
    
=> 1,
    
=> 2,
    
=> 3,
  ],
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'mixed' => [
      
=> 'A: AAAXX',
      
=> 'B: BBBX',
      
=> 'C: CCC',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]