显示下拉菜单

Configuration of substr_replace() 本页面仅提供英文版本。

<?php
/**
 * PHP By Example
 *
 * @copyright 2014 Michel Corne 
 * @license   http://www.opensource.org/licenses/gpl-3.0.html GNU GPL v3
 */

require_once 'models/function_core.php';

/**
 * Function configuration
 *
 * @see docs/function-configuration.txt
 */

class substr_replace extends function_core
{
    public 
$examples = [
        [
            
"ABCDEFGH:/MNRPQR/",
            
"bob",
            
0
        
],
        [
            
"ABCDEFGH:/MNRPQR/",
            
"bob",
            
0,
            
17
        
],
        [
            
"ABCDEFGH:/MNRPQR/",
            
"bob",
            
0,
            
0
        
],
        [
            
"ABCDEFGH:/MNRPQR/",
            
"bob",
            
10,
            -
1
        
],
        [
            
"ABCDEFGH:/MNRPQR/",
            
"bob",
            -
7,
            -
1
        
],
        [
            
"ABCDEFGH:/MNRPQR/",
            
"",
            
10,
            -
1
        
],
        [
            [
                
=> "A: XXX",
                
=> "B: XXX",
                
=> "C: XXX",
            ],
            
"YYY",
            
3,
            
3
        
],
        [
            [
                
=> "A: XXX",
                
=> "B: XXX",
                
=> "C: XXX",
            ],
            [
                
=> "AAA",
                
=> "BBB",
                
=> "CCC",
            ],
            
3,
            
3
        
],
        [
            [
                
=> "A: XXX",
                
=> "B: XXX",
                
=> "C: XXX",
            ],
            [
                
=> "AAA",
                
=> "BBB",
                
=> "CCC",
            ],
            
3,
            [
                
=> 1,
                
=> 2,
                
=> 3,
            ]
        ]
    ];

    public 
$synopsis 'mixed substr_replace ( mixed $string , mixed $replacement , mixed $start [, mixed $length ] )';
}