How can I get multiple parameters from a URL when they have the same param name?

Re: How can I get multiple parameters from a URL when they have the same param name?

by Vedant Nayar -
Number of replies: 0
Hi Davo,
Thank you so much, it's working! Misunderstanding and requesting the parameter as 'category[]' was the problem, and requesting it as 'category' worked.

For anyone else viewing this at a later date, this is what my final code looks like:
$categoryFilter = optional_param_array('category', [], PARAM_TEXT);

And the URL looks like this:
*/?category%5B%5D=Database+Administration&category%5B%5D=Database+Design+%26+Development&category%5B%5D=Design+Tools

Thanks once again to Davo and Tim for the help