my problem is to create a simple php script that I want to call with params from command line or browser:

```
if(!empty($_GET)) {
    $parameters = $_GET;
} else if(isset($argv)) {
    $parameters = $argv;
}
var_dump($parameters);

```

this gives different result :

in browser : **<http://localhost/test/script.php?test=123>** 

```
array(1) { ["test"]=> string(3) "123" }

```

in shell : **php script.php test=123**

```
array(2) {
  [0]=>
  string(10) "script.php"
  [1]=>
    string(8) "test=123"
}

```

I want to call the params by their names.