by Example
Показать выпадающий список
Configuration of str_pad()
Эта страница доступна только на английском языке.
<?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 str_pad extends function_core
{
public $constant_prefix = ['pad_type' => 'STR_PAD'];
public $examples = [
[
"Alien",
10
],
[
"Alien",
10,
"-=",
'STR_PAD_LEFT'
],
[
"Alien",
10,
"_",
'STR_PAD_BOTH'
],
[
"Alien",
6,
'___'
]
];
public $synopsis = 'string str_pad ( string $input , int $pad_length [, string $pad_string = " " [, int $pad_type = STR_PAD_RIGHT ]] )';
}
Powered by
PHP 7.1.33 (0.1 s)
2014-2017 Michel Corne