concrete/src/Http/RequestBase.php
public static function post($key = null, $defaultValue = null)
    {
        if ($key == null) {
            return $_POST;
        }
        if (isset($_POST[$key])) {
            return (is_string($_POST[$key])) ? trim($_POST[$key]) : $_POST[$key];
        }

        return $defaultValue;
    }
public static function post($key = null, $defaultValue = null)
    {
        if ($key == null) {
            return $_POST;
        }
        if (isset($_POST[$key])) {
            return (is_string($_POST[$key])) ? trim($_POST[$key]) : $_POST[$key];
        }

        return $defaultValue;
    }
public static function post ( $ key = null , $ defaultValue = null ) { if ( $ key == null ) { return $ _POST ; } if ( isset ( $ _POST [ $ key ] ) ) { return ( is_string ( $ _POST [ $ key ] ) ) ? trim ( $ _POST [ $ key ] ) : $ _POST [ $ key ] ; } return $ defaultValue ; }
If no arguments are passed, returns the post array. If a key is passed, it returns the value as it exists in the post array.
If a default value is provided and the key does not exist in the POST array, the default value is returned.

@param string $key
@param mixed $defaultValue

@return mixed
If no arguments are passed returns the post array . If a key is passed it returns the value as it exists in the post array . If a default value is provided and the key does not exist in the POST array the default value is returned .