r::body PHP 메소드

body() 정적인 공개 메소드

Returns the request body from POST requests for example
static public body ( ) : array
리턴 array
    static function body()
    {
        @parse_str(@file_get_contents('php://input'), $body);
        return self::sanitize((array) $body);
    }

Usage Example

예제 #1
0
 public function testBody()
 {
     $this->assertEquals('', r::body());
 }