by Example
Display the drop-down list
Configuration of imagecreate()
<?php
/**
* PHP By Example
*
* @copyright 2015 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 imagecreate extends function_core
{
public $examples = [
[
200,
100,
],
];
public $synopsis = 'resource imagecreate ( int $width , int $height )';
function post_exec_function()
{
if ($this->result['resource']) {
$this->image_path = $this->_file->write_public_temp_image($this->result['resource']);
}
}
function pre_exec_function()
{
$this->_filter->filter_number('width' , 1000);
$this->_filter->filter_number('height', 1000);
}
}
Help
Misc
Config
Test
Unit test
Powered by
PHP 7.1.33 (0.003 s)
2014-2017 Michel Corne