<?php
$test=array (
array (
"url"=>"/",
"controller"=>"Task",
"action"=>"tasks",
"params"=>NULL,
),
array (
"url"=>"/add",
"controller"=>"Task",
"action"=>"create",
"params"=>NULL,
),
array (
"url"=>"/delete",
"controller"=>"Task",
"action"=>"delete",
"params"=>NULL,
),
);
foreach ($test as $value)
var_dump($value);
?>
$ php a.php
array(4) {
["url"]=>
string(1) "/"
["controller"]=>
string(4) "Task"
["action"]=>
string(5) "tasks"
["params"]=>
NULL
}
array(4) {
["url"]=>
string(4) "/add"
["controller"]=>
string(4) "Task"
["action"]=>
string(6) "create"
["params"]=>
NULL
}
array(4) {
["url"]=>
string(7) "/delete"
["controller"]=>
string(4) "Task"
["action"]=>
string(6) "delete"
["params"]=>
NULL
}