This should be a simple task, but I guess my head is a bit overheated currently.
How do I correctly turn a GET string with the value "status[30]" into an array, like:
array ( status => 30 );
I could use something like this:
$arr = array ( 'status' => str_replace( array( 'status[', ']' ), null, $_GET['status'] ) );
but there has to be a better way.
$_GETvariable in the first place? Is it an HTML form?$_GET['status']value containsstatus[x];Array ( [0] => status[30] )