1

I found in a bundle those lines of code:

$params = $request->get('params');
if (!is_array($params)) {
    // Bad params
    $params = array();
}

$options = $request->get('options');
if (!is_array($options)) {
    // Bad options
    $options = array();
}

I wonder how to pass GET-parameters as an array?

http://url?params=...&options=...
2
  • 5
    http://url?params[]=1&params[]=2&params[]=3... Commented Mar 5, 2015 at 16:18
  • Everything you need can be found in this answer Commented Mar 5, 2015 at 16:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.