<?php $arr =[ [ "controller" => "RegisterController", "method" => "GET", "url" => "/register", "action" => "index" ], [ "controller" => "RegisterController1", "method" => "GET", "url" => "/register", "action" => "index" ], [ "controller" => "RegisterController", "method" => "GET", "url" => "/help", "action" => "index" ]]; $register = array_intersect_key($arr, array_intersect(array_column($arr, "url"), ["/register"])); Var_dump($register);
You have javascript disabled. You will not be able to edit any code.