0

Hey there I'd like to split an Array into an multidimensional Array:

The actual code:

public function getUrlParameters() {
    $actual_link = $_SERVER['REQUEST_URI'];
    return $url = explode('/', $actual_link);
}

The actual output:

Array ( [0] => [1] => request?search=hello [2] => test )

What I'd like to have:

Array ( [0] => [1] => request ([0] => ?search=hello) [2] => test )

Thank you very much in advance!

0 Answers0