CI_Profiler::_compile_post PHP Method

_compile_post() protected method

Compile $_POST Data
protected _compile_post ( ) : string
return string
    protected function _compile_post()
    {
        $output = array();
        if (count($_POST) == 0) {
            $output = $this->CI->lang->line('profiler_no_post');
        } else {
            foreach ($_POST as $key => $val) {
                if (!is_numeric($key)) {
                    $key = "'" . $key . "'";
                }
                if (is_array($val)) {
                    $output['&#36;_POST[' . $key . ']'] = '<pre>' . htmlspecialchars(stripslashes(print_r($val, TRUE))) . '</pre>';
                } else {
                    $output['&#36;_POST[' . $key . ']'] = htmlspecialchars(stripslashes($val));
                }
            }
        }
        return $output;
    }