Request::getQueryString PHP Method

getQueryString() public static method

It builds a normalized query string, where keys/value pairs are alphabetized and have consistent escaping.
public static getQueryString ( ) : string | null
return string | null A normalized query string for the Request
        public static function getQueryString()
        {
            //Method inherited from \Symfony\Component\HttpFoundation\Request
            return \Illuminate\Http\Request::getQueryString();
        }

Usage Example

Beispiel #1
0
 function testGetQueryString()
 {
     $s = array('QUERY_STRING' => 'bla');
     $r = new Request($s);
     $this->assertEquals('bla', $r->getQueryString());
     $s = array();
     $r = new Request($s);
     $this->assertEquals('', $r->getQueryString());
 }
All Usage Examples Of Request::getQueryString