public static function getHttpBodyValue($param, $varReplaceNotSet = null)
    {
        parse_str(file_get_contents('php://input'), $arrPostVars);

        $strReturn = (isset($arrPostVars[$param])) ? $arrPostVars[$param] : $varReplaceNotSet;

        return $strReturn;
    }
public static function getHttpBodyValue($param, $varReplaceNotSet = null)
    {
        parse_str(file_get_contents('php://input'), $arrPostVars);

        $strReturn = (isset($arrPostVars[$param])) ? $arrPostVars[$param] : $varReplaceNotSet;

        return $strReturn;
    }
public static function getHttpBodyValue ( $ param , $ varReplaceNotSet = null ) { parse_str ( file_get_contents ( 'php://input' ) , $ arrPostVars ) ; $ strReturn = ( isset ( $ arrPostVars [ $ param ] ) ) ? $ arrPostVars [ $ param ] : $ varReplaceNotSet ; return $ strReturn ; }
Get the value of a form field from the raw HTTP body. This is used for PUT and DELETE HTTP methods.

@param string $param The parameter to read
@param string $varReplaceNotSet Optional replace value when parameter is not set in the body
@return string|array
Get the value of a form field from the raw HTTP body . This is used for PUT and DELETE HTTP methods .