Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

undeportedmexican's avatar

Passing Array in GET Request

I'm working on a module that displays invoices, and I'm setting up a filter with different options, within those is the status filter, where the users can select one or many of the different statuses ['unsent', 'sent', 'overdue', 'paid']

My question is, is it a good practice to send an array in the get request, or should I consider a different approach?

0 likes
2 replies
sr57's avatar
sr57
Best Answer
Level 39

Up to you $_GET is a standard array, and so can contain array.

Your use case is like 'select2' and array should be a good choice.

Please or to participate in this conversation.