implodeQuery是什么意思?

I was checking the source page of facebook . I found a function which frequently used there . the line was

input_len=URI.implodeQuery(this.data).length

I cant understand what the line means and what implodeQuery .

I also need th same function for php .

Please help me ! thanks

URI.implodeQuery appears to serialize the passed object into a query string (for something like a GET request). This functions much like jQuery.param().

From the JavaScript console on Facebook:

> URI.implodeQuery({'greeting':'hello','number':2,'vegetable':'carrot'});
"greeting=hello&number=2&vegetable=carrot"

URI.implodeQuery() is not native to javascript.

It's a method defined somewhere else in the Facebook code.