Library/Think/Http/Request.class.php
/**
     * Fetch POST data
     *
     * This method returns a key-value array of data sent in the HTTP request body, or
     * the value of a hash key if requested; if the array key does not exist, NULL is returned.
     *
     * @param  string             $key
     * @param  mixed              $default Default return value when key does not exist
     * @throws \RuntimeException  If environment input is not available
     * @return array|mixed|null
     */
Fetch POST data
This method returns a key-value array of data sent in the HTTP request body, or
the value of a hash key if requested; if the array key does not exist, NULL is returned.

@param  string             $key
@param  mixed              $default Default return value when key does not exist
@throws \RuntimeException  If environment input is not available
@return array|mixed|null
Fetch POST data This method returns a key - value array of data sent in the HTTP request body or the value of a hash key if requested ; if the array key does not exist NULL is returned . @param string $key @param mixed $default Default return value when key does not exist @throws \ RuntimeException If environment input is not available @return array|mixed|null
public function post($key = null, $default = null) {
        if (!isset($this->env['hhailuo.input'])) {
            throw new \RuntimeException('Missing hhailuo.input in environment variables');
        }
        if (!isset($this->env['hhailuo.request.form_hash'])) {
            $this->env['hhailuo.request.form_hash'] = [];
            if ($this->isFormData() && is_string($this->env['hhailuo.input'])) {
                $output = [];
                if (function_exists('mb_parse_str') && !isset($this->env['hhailuo.tests.ignore_multibyte'])) {
                    mb_parse_str($this->env['hhailuo.input'], $output);
                } else {
                    parse_str($this->env['hhailuo.input'], $output);
                }
                $this->env['hhailuo.request.form_hash'] = Util::stripSlashesIfMagicQuotes($output);
            } else {
                $this->env['hhailuo.request.form_hash'] = Util::stripSlashesIfMagicQuotes($_POST);
            }
        }
        if ($key) {
            if (isset($this->env['hhailuo.request.form_hash'][$key])) {
                return $this->env['hhailuo.request.form_hash'][$key];
            } else {
                return $default;
            }
        } else {
            return $this->env['hhailuo.request.form_hash'];
        }
    }
public function post ( $ key = null , $ default = null ) { if ( ! isset ( $ this -> env [ 'hhailuo.input' ] ) ) { throw new \ RuntimeException ( 'Missing hhailuo.input in environment variables' ) ; } if ( ! isset ( $ this -> env [ 'hhailuo.request.form_hash' ] ) ) { $ this -> env [ 'hhailuo.request.form_hash' ] = [ ] ; if ( $ this -> isFormData ( ) && is_string ( $ this -> env [ 'hhailuo.input' ] ) ) { $ output = [ ] ; if ( function_exists ( 'mb_parse_str' ) && ! isset ( $ this -> env [ 'hhailuo.tests.ignore_multibyte' ] ) ) { mb_parse_str ( $ this -> env [ 'hhailuo.input' ] , $ output ) ; } else { parse_str ( $ this -> env [ 'hhailuo.input' ] , $ output ) ; } $ this -> env [ 'hhailuo.request.form_hash' ] = Util :: stripSlashesIfMagicQuotes ( $ output ) ; } else { $ this -> env [ 'hhailuo.request.form_hash' ] = Util :: stripSlashesIfMagicQuotes ( $ _POST ) ; } } if ( $ key ) { if ( isset ( $ this -> env [ 'hhailuo.request.form_hash' ] [ $ key ] ) ) { return $ this -> env [ 'hhailuo.request.form_hash' ] [ $ key ] ; } else { return $ default ; } } else { return $ this -> env [ 'hhailuo.request.form_hash' ] ; } }
Fetch POST data
 This method returns a key-value array of data sent in the HTTP request body, or
 the value of a hash key if requested; if the array key does not exist, NULL is returned.
Fetch POST data This method returns a key - value array of data sent in the HTTP request body or the value of a hash key if requested ; if the array key does not exist NULL is returned .