显示下拉菜单

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

<?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 var_dump extends function_core
{
    public 
$examples = [
        [
            [
                
=> 1,
                
=> 2,
                
=> [
                    
=> "a",
                    
=> "b",
                    
=> "c",
                ],
            ]
        ],
        [
            
3.1,
            
true,
        ],
    ];

    public 
$output_buffer true;

    public 
$synopsis       'void var_dump ( mixed $expression [, mixed $... ] )';
    public 
$synopsis_fixed 'void var_dump ( mixed $expression1, mixed $expression2 [, mixed $... ] )';

    function 
pre_exec_function()
    {
        
parent::pre_exec_function();

        if (
ini_get('xdebug.overload_var_dump')) {
            
// disables xdebug var_dump that overloads PHP var_dump
            
ini_set('xdebug.overload_var_dump'false);
        }
    }
}