toArray() public method

Returns an array version of the query string
public toArray ( )
Example #1
0
 public function testSimpleQueryString()
 {
     $source = "key1=1&key2=" . urlencode('&&&');
     $qs = new Http\QueryString($source);
     $this->assertEquals($qs->toArray(), array('key1' => '1', 'key2' => '&&&'));
     $this->assertEquals($qs->__toString(), $source);
 }