by Example
显示下拉菜单
Configuration of settype()
本页面仅提供英文版本。
<?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 settype extends function_core
{
public $examples = [
[
'__var' => "5bar",
'$var',
"integer"
],
[
'__var' => true,
'$var',
"string"
]
];
public $input_args = '__var';
public $options_list = ['type' => ['boolean', 'bool', 'integer', 'int', 'float', 'double', 'string', 'array', 'object', 'null']];
public $source_code = '
$_var =
$__var; // mixed $__var
inject_function_call
';
public $synopsis = 'bool settype ( mixed &$var , string $type )';
}
帮助
杂项
配置
测试
单元测试
Powered by
PHP 7.1.33 (0.002 s)
2014-2017 Michel Corne